chore: add isolatedModules

This commit is contained in:
Kyle Fang
2019-04-23 16:55:27 +08:00
parent d8d67d3c0b
commit 0b832be4a6
3 changed files with 6 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ export interface IOnLayoutEvent {
nativeEvent: { layout: { x: number; y: number; width: number; height: number } }
};
interface IBaseItemType {
export interface IBaseItemType {
key:string;
}

View File

@@ -1,8 +1,9 @@
import { IDraggableGridProps,DraggableGrid } from './draggable-grid';
import { IDraggableGridProps, DraggableGrid, IBaseItemType } from './draggable-grid';
export type IDraggableGridProps<T extends IBaseItemType> = IDraggableGridProps<T>
export {
DraggableGrid,
IDraggableGridProps,
};
export default DraggableGrid;
export default DraggableGrid;

View File

@@ -9,6 +9,7 @@
"target": "es5",
"outDir": "built",
"sourceMap": true,
"isolatedModules": true,
"skipLibCheck": true
},
"exclude": ["node_modules", "demo"]