Add TypeScript declaration
This commit is contained in:
Родитель
2ce0776777
Коммит
aafed5a885
|
@ -0,0 +1,9 @@
|
|||
declare let config: IPainlessConfig;
|
||||
declare module "painless-config" {
|
||||
export default config;
|
||||
}
|
||||
|
||||
interface IPainlessConfig {
|
||||
get(name: string): string;
|
||||
all(): Map<string, string>;
|
||||
}
|
|
@ -1,8 +1,9 @@
|
|||
{
|
||||
"name": "painless-config",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"description": "Low friction library for application configuration.",
|
||||
"main": "index.js",
|
||||
"types": "./lib/painless-config.d.ts",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче