fix: .d.ts definitions for core and app (#2929)
* fix: .d.ts definitions for core and app * fix: updated ts types to match the schema
This commit is contained in:
7
packages/netlify-cms-app/index.d.ts
vendored
Normal file
7
packages/netlify-cms-app/index.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
declare module 'netlify-cms-app' {
|
||||
import { CMS } from 'netlify-cms-core';
|
||||
|
||||
export const NetlifyCmsApp: CMS;
|
||||
|
||||
export default NetlifyCmsApp;
|
||||
}
|
@ -6,6 +6,12 @@
|
||||
"repository": "https://github.com/netlify/netlify-cms/tree/master/packages/netlify-cms-app",
|
||||
"bugs": "https://github.com/netlify/netlify-cms/issues",
|
||||
"main": "dist/netlify-cms-app.js",
|
||||
"files": [
|
||||
"src/",
|
||||
"dist/",
|
||||
"index.d.ts"
|
||||
],
|
||||
"types": "index.d.ts",
|
||||
"scripts": {
|
||||
"develop": "yarn build:esm --watch",
|
||||
"build": "cross-env NODE_ENV=production webpack",
|
||||
|
Reference in New Issue
Block a user