mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
Merge pull request #21552 from jinwoo/master
Add new packages: spdx-satisfies & spdx-correct
This commit is contained in:
Vendored
+7
@@ -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;
|
||||
@@ -0,0 +1,3 @@
|
||||
import spdxCorrect = require('spdx-correct');
|
||||
|
||||
spdxCorrect('BSD');
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Vendored
+7
@@ -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)');
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user