[@wordpress/block-serialization-default-parser] add new defini… (#36547)

This commit is contained in:
Derek Sifford
2019-07-01 11:18:39 -07:00
committed by Ryan Cavanaugh
parent aa253dc91e
commit 0caf020569
4 changed files with 32 additions and 0 deletions
@@ -0,0 +1,7 @@
// Type definitions for @wordpress/block-serialization-default-parser 3.2
// Project: https://github.com/WordPress/gutenberg/tree/master/packages/block-serialization-default-parser/README.md
// Definitions by: Derek Sifford <https://github.com/dsifford>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.5
export * from '@wordpress/block-serialization-spec-parser';
@@ -0,0 +1,20 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": ["es6"],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": ["../"],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true,
"paths": {
"@wordpress/block-serialization-default-parser": ["wordpress__block-serialization-default-parser"],
"@wordpress/block-serialization-spec-parser": ["wordpress__block-serialization-spec-parser"]
}
},
"files": ["index.d.ts", "wordpress__block-serialization-default-parser-tests.ts"]
}
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }
@@ -0,0 +1,4 @@
import { parse } from '@wordpress/block-serialization-default-parser';
// $ExpectType readonly Block[]
parse('hello world');