Merge pull request #27986 from ThomasdenH/ttf2woff2

[ttf2woff2] Add types for ttf2woff2
This commit is contained in:
Benjamin Lichtman
2018-08-14 13:24:58 -07:00
committed by GitHub
4 changed files with 38 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
// Type definitions for ttf2woff2 2.0
// Project: https://github.com/nfroidure/ttf2woff2
// Definitions by: Thomas den Hollander <https://github.com/ThomasdenH>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
declare function ttf2woff2(inputContent: Buffer): Buffer;
export = ttf2woff2;
+23
View File
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true,
"strictFunctionTypes": true
},
"files": [
"index.d.ts",
"ttf2woff2-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }
+4
View File
@@ -0,0 +1,4 @@
import ttf2woff2 = require('ttf2woff2');
const input = Buffer.alloc(10);
const result: Buffer = ttf2woff2(input);