Skip to content

Commit

Permalink
fix: include types for box2d primitives
Browse files Browse the repository at this point in the history
  • Loading branch information
hannojg committed Sep 11, 2022
1 parent ad17cfd commit a87f6ee
Show file tree
Hide file tree
Showing 4 changed files with 5,593 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"build-lib-android": "./scripts/android-build-n-copy-box2d.sh",
"build-lib-ios": "./scripts/ios-build-n-copy-box2d.sh",
"build-lib": "yarn copy-headers && yarn build-lib-android && yarn build-lib-ios",
"prepare": "yarn build-lib && bob build",
"build-js": "bob build && cp src/types.d.ts lib/typescript/types.d.ts",
"prepare": "yarn build-lib && yarn build-js",
"release": "release-it"
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions src/Box2d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { NativeModules, Platform } from 'react-native';
import type { Box2D } from './types';

// global func declaration for JSI functions
declare global {
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './Box2d';
export * from './types';
Loading

0 comments on commit a87f6ee

Please sign in to comment.