mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Merge pull request #27986 from ThomasdenH/ttf2woff2
[ttf2woff2] Add types for ttf2woff2
This commit is contained in:
Vendored
+10
@@ -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;
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -0,0 +1,4 @@
|
||||
import ttf2woff2 = require('ttf2woff2');
|
||||
|
||||
const input = Buffer.alloc(10);
|
||||
const result: Buffer = ttf2woff2(input);
|
||||
Reference in New Issue
Block a user