UNPKG

typescript-closure-tools

Version:

Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files

39 lines (33 loc) 835 B
// Type definitions for configstore 0.3.0 // Project: https://github.com/yeoman/configstore // Definitions by: Bart van der Schoor <https://github.com/Bartvds> // Definitions: https://github.com/borisyankov/DefinitelyTyped declare module 'configstore' { /* Set an item */ export function set(key: string, val: any): void; /* Get an item */ export function get(key: string): any; /* Delete an item */ export function del(key: string): void; /* Get all items as an object or replace the current config with an object: conf.all = { hello: 'world' }; */ export var all: Object; /* Get the item count */ export var size: number; /* Get the path to the config file. Can be used to show the user where the config file is located or even better open it for them. */ export var path: string; }