mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
21 lines
659 B
TypeScript
21 lines
659 B
TypeScript
import * as fz from "fuzzaldrin-plus";
|
|
|
|
const candidates = [
|
|
'Find And Replace: Select All',
|
|
'Settings View: Uninstall Packages',
|
|
'Settings View: View Installed Themes',
|
|
'Application: Install Update',
|
|
'Install'
|
|
]
|
|
const objectCandidates = candidates.map(s => ({ foo: s }));
|
|
|
|
fz.filter(candidates, 'install');
|
|
fz.filter(objectCandidates, 'install', { key: 'foo' });
|
|
|
|
const prepQuery = fz.prepQuery('install');
|
|
fz.score('Application: Install Update', 'install');
|
|
fz.score('Application: Install Update', 'install', prepQuery);
|
|
|
|
fz.match('Application: Install Update', 'install');
|
|
fz.match('Application: Install Update', 'install', prepQuery);
|