Skip to content

Commit f3fbba3

Browse files
andrewigginsmarvinhagemeister
authored andcommitted
[TS] Make options optional (#101)
Make each Option property optional to allow passing in partial options objects (e.g. `{ pretty: true }`)
1 parent 0b239cf commit f3fbba3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import { VNode } from 'preact';
22

33
declare module render {
44
interface Options {
5-
shallow:boolean;
6-
xml:boolean;
7-
pretty:boolean;
5+
shallow?: boolean;
6+
xml?: boolean;
7+
pretty?: boolean;
88
}
99

10-
function render(vnode:VNode, context?:any, options?:Options):string;
11-
function shallowRender(vnode:VNode, context?:any):string;
10+
function render(vnode: VNode, context?: any, options?: Options): string;
11+
function shallowRender(vnode: VNode, context?: any): string;
1212
}
1313

1414
export = render;

0 commit comments

Comments
 (0)