Skip to content

Commit d0db0a8

Browse files
committed
type: Update types.
1 parent 5973a2b commit d0db0a8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function Demo() {
6767
## Props
6868

6969
```typescript
70-
type CodeSandboxProps = {
70+
type CodeSandboxProps = React.FormHTMLAttributes<HTMLFormElement> & {
7171
/**
7272
* Whether we should redirect to the embed instead of the editor.
7373
*/
@@ -89,7 +89,7 @@ type CodeSandboxProps = {
8989
content?: string | Record<string, any>;
9090
isBinary?: boolean;
9191
}>
92-
}
92+
};
9393
```
9494

9595
## Development

src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { getParameters } from 'codesandbox-import-utils/lib/api/define';
33

4-
export type CodeSandboxProps = {
4+
export type CodeSandboxProps = React.FormHTMLAttributes<HTMLFormElement> & {
55
/**
66
* Whether we should redirect to the embed instead of the editor.
77
*/
@@ -23,7 +23,7 @@ export type CodeSandboxProps = {
2323
content?: string | Record<string, any>;
2424
isBinary?: boolean;
2525
}>
26-
}
26+
};
2727

2828
const codeSandbox: React.FC<CodeSandboxProps> = (props) => {
2929
const { files = {}, embed, json, query, ...other } = props || {};

0 commit comments

Comments
 (0)