import { expectType } from 'tsd'; import xdgAppPaths from '../src/mod.esm'; expectType(xdgAppPaths); expectType(xdgAppPaths()); expectType(new xdgAppPaths()); expectType(xdgAppPaths('MyApp')); expectType(xdgAppPaths({ name: 'MyApp', suffix: '-nodejs', isolated: false })); expectType(new xdgAppPaths('MyApp')); expectType( new xdgAppPaths({ name: 'MyApp', suffix: '-nodejs', isolated: false }) ); const paths = xdgAppPaths('MyApp'); expectType(paths); expectType(paths.$name()); expectType(paths.$isolated()); expectType(paths.cache()); expectType(paths.cache(false)); expectType(paths.cache({ isolated: true })); expectType(paths.config()); expectType(paths.config(true)); expectType(paths.config({ isolated: false })); expectType(paths.data()); expectType(paths.data(false)); expectType(paths.data({ isolated: true })); expectType(paths.runtime()); expectType(paths.runtime(true)); expectType(paths.runtime({ isolated: false })); expectType(paths.state()); expectType(paths.state(false)); expectType(paths.state({ isolated: true })); expectType(paths.configDirs()); expectType(paths.configDirs(true)); expectType(paths.configDirs({ isolated: false })); expectType(paths.dataDirs()); expectType(paths.dataDirs(false)); expectType(paths.dataDirs({ isolated: true }));