update declaration file
This commit is contained in:
8
index.d.ts
vendored
8
index.d.ts
vendored
@@ -1,4 +1,4 @@
|
|||||||
declare module 'rollup-plugin-typescript' {
|
import { serializedNodeWithId } from './src/types';
|
||||||
function typescript(): any;
|
|
||||||
export = typescript;
|
export function snapshot(n: Document): serializedNodeWithId | null;
|
||||||
}
|
export function rebuild(n: serializedNodeWithId): Node | null;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"description": "rrweb's component to take a snapshot of DOM, aka DOM serializer",
|
"description": "rrweb's component to take a snapshot of DOM, aka DOM serializer",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "TS_NODE_FILES=true mocha -r ts-node/register test/**/*.ts",
|
"test": "TS_NODE_CACHE=false TS_NODE_FILES=true mocha -r ts-node/register test/**/*.ts",
|
||||||
"compile": "rollup --config"
|
"compile": "rollup --config"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
4
test.d.ts
vendored
Normal file
4
test.d.ts
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
declare module 'rollup-plugin-typescript' {
|
||||||
|
function typescript(): any;
|
||||||
|
export = typescript;
|
||||||
|
}
|
||||||
@@ -11,5 +11,5 @@
|
|||||||
},
|
},
|
||||||
"compileOnSave": true,
|
"compileOnSave": true,
|
||||||
"exclude": ["test"],
|
"exclude": ["test"],
|
||||||
"include": ["src", "index.d.ts"]
|
"include": ["src", "test.d.ts"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user