Add new packages: spdx-satisfies & spdx-correct

This commit is contained in:
Jinwoo Lee
2017-11-15 14:13:36 -08:00
parent 6fcd9209dc
commit c97483759d
8 changed files with 74 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
// Type definitions for spdx-correct 2.0
// Project: https://github.com/jslicense/spdx-correct.js#readme
// Definitions by: Jinwoo Lee <https://github.com/jinwoo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function spdxCorrect(identifier: string): string|null;
declare namespace spdxCorrect {
// empty
}
export = spdxCorrect;
+3
View File
@@ -0,0 +1,3 @@
import * as spdxCorrect from 'spdx-correct';
spdxCorrect('BSD');
+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",
"spdx-correct-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }
+10
View File
@@ -0,0 +1,10 @@
// Type definitions for spdx-satisfies 0.1
// Project: https://github.com/kemitchell/spdx-satisfies.js#readme
// Definitions by: Jinwoo Lee <https://github.com/jinwoo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function spdxSatisfies(first: string, second: string): boolean;
declare namespace spdxSatisfies {
// empty
}
export = spdxSatisfies;
@@ -0,0 +1,3 @@
import * as spdxSatisfies from 'spdx-satisfies';
spdxSatisfies('BSD-2-Clause', '(BSD-2-Clause OR MIT)');
+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",
"spdx-satisfies-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }