Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

Commit 45affde

Browse files
authored
Fix TypeScript declaration.
Fixes error: src/index.d.ts(6,60): error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
1 parent 3e1ba88 commit 45affde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ import * as React from 'react';
33
type CustomElementCtor = { new(...args: any[]): HTMLElement };
44
type ReactComponentCtor = { new(...args: any[]): React.Component<any, any> };
55
type Options = { React?: any, ReactDOM?: any };
6-
export default function (CustomElement: CustomElementCtor, opts: Options = {}): ReactComponentCtor;
6+
export default function (CustomElement: CustomElementCtor, opts: Options = {}): ReactComponentCtor

0 commit comments

Comments
 (0)