[urix] Add types

This commit is contained in:
Dimitri Benin
2019-01-01 14:58:16 +01:00
parent 0d851ec699
commit 1e77f45f8f
4 changed files with 35 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
// Type definitions for urix 0.1
// Project: https://github.com/lydell/urix
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = urix;
declare function urix(path: string): string;
+23
View File
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"urix-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }
+3
View File
@@ -0,0 +1,3 @@
import urix = require('urix');
urix('c:\\users\\you\\foo'); // $ExpectType string