tauri/cli/tauri.js/api-src/cli.ts
nothingismagick 2681ad361b
refactor(tauri.js) rewrite API module in TypeScript, closes #679 #435 (#703)
Co-authored-by: Quentin Goinaud <armaldio@gmail.com>
Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-06-27 12:20:00 -03:00

16 lines
258 B
TypeScript

import { CliMatches } from './types/cli'
import { promisified } from './tauri'
/**
* gets the CLI matches
*/
async function getMatches(): Promise<CliMatches> {
return await promisified<CliMatches>({
cmd: 'cliMatches'
})
}
export {
getMatches
}