Skip to content

Commit c9c94f2

Browse files
fix: typecheck hook
1 parent 2670075 commit c9c94f2

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

apps/side-by-side/SandboxApp.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import {
1111
} from 'react-native'
1212

1313
declare global {
14-
var postMessage: (message: object) => void
15-
var setOnMessage: (handler: (payload: object) => void) => void
14+
var postMessage: (message: any, targetOrigin?: string) => void
15+
var setOnMessage: (handler: (payload: any) => void) => void
1616
}
1717

1818
type AppProps = {

lefthook.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ pre-commit:
33
commands:
44
lint:
55
glob: '*.{js,ts,jsx,tsx}'
6-
run: npx eslint {staged_files}
6+
run: bun eslint {staged_files}
77
types:
8-
glob: '*.{js, ts, jsx, tsx}'
9-
run: npx typecheck
8+
glob: '*.{js,ts,jsx,tsx}'
9+
run: bun typecheck
1010
commit-msg:
1111
parallel: true
1212
commands:
1313
commitlint:
14-
run: npx commitlint --edit
14+
run: bun commitlint --edit

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"android": "bun run android --filter=@apps/side-by-side",
1111
"lint": "eslint . && bun --filter=react-native-sandbox lint",
1212
"format": "eslint . --fix && bun --filter=react-native-sandbox format",
13-
"test": "jest"
13+
"test": "jest",
14+
"typecheck": "tsc --noEmit"
1415
},
1516
"devDependencies": {
1617
"@babel/core": "^7.25.2",
@@ -69,4 +70,4 @@
6970
"node": ">=18"
7071
},
7172
"packageManager": "bun@1.1.0"
72-
}
73+
}

0 commit comments

Comments
 (0)