Merge pull request #21552 from jinwoo/master

Add new packages: spdx-satisfies & spdx-correct
This commit is contained in:
Nathan Shively-Sanders
2017-11-15 15:04:54 -08:00
committed by GitHub
8 changed files with 68 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
// 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;
export = spdxCorrect;
+3
View File
@@ -0,0 +1,3 @@
import spdxCorrect = require('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" }
+7
View File
@@ -0,0 +1,7 @@
// 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;
export = spdxSatisfies;
@@ -0,0 +1,3 @@
import spdxSatisfies = require('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" }