File tree Expand file tree Collapse file tree 3 files changed +27
-1
lines changed Expand file tree Collapse file tree 3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change
1
+ import { VNode } from 'preact' ;
2
+
3
+ interface Options {
4
+ jsx ?: boolean ;
5
+ xml ?: boolean ;
6
+ functions ?: boolean
7
+ functionNames ?: boolean ,
8
+ skipFalseAttributes ?: boolean
9
+ pretty ?: boolean | string ;
10
+ }
11
+
12
+ export function render ( vnode : VNode , context ?: any , options ?: Options ) :string ;
13
+ export default render ;
Original file line number Diff line number Diff line change 11
11
"build" : " npm run -s transpile && npm run -s transpile:jsx && npm run -s copy-typescript-definition" ,
12
12
"transpile" : " microbundle src/index.js -f es,umd --target web --external preact" ,
13
13
"transpile:jsx" : " microbundle src/jsx.js -o dist/jsx.js --target web --external none && microbundle dist/jsx.js -o dist/jsx.js -f cjs" ,
14
- "copy-typescript-definition" : " copyfiles -f src/index .d.ts dist" ,
14
+ "copy-typescript-definition" : " copyfiles -f src/* .d.ts dist" ,
15
15
"test" : " eslint src test && tsc && mocha -r babel-core/register test/**/*.js" ,
16
16
"prepublish" : " npm run build" ,
17
17
"release" : " npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
Original file line number Diff line number Diff line change
1
+ import { VNode } from 'preact' ;
2
+
3
+ interface Options {
4
+ jsx ?: boolean ;
5
+ xml ?: boolean ;
6
+ functions ?: boolean
7
+ functionNames ?: boolean ,
8
+ skipFalseAttributes ?: boolean
9
+ pretty ?: boolean | string ;
10
+ }
11
+
12
+ export function render ( vnode : VNode , context ?: any , options ?: Options ) :string ;
13
+ export default render ;
You can’t perform that action at this time.
0 commit comments