diff --git a/packages/web-api-hooks/src/index.ts b/packages/web-api-hooks/src/index.ts index 97a5d12..4516a0e 100644 --- a/packages/web-api-hooks/src/index.ts +++ b/packages/web-api-hooks/src/index.ts @@ -1,4 +1,10 @@ -export { EventArgs, EventMap, JSONArray, JSONObject, JSONValue } from './types'; +export type { + EventArgs, + EventMap, + JSONArray, + JSONObject, + JSONValue, +} from './types'; export { default as useDeviceMotion } from './useDeviceMotion'; export { default as useDeviceOrientation } from './useDeviceOrientation'; diff --git a/tsconfig.json b/tsconfig.json index b3c7477..d0d158e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,7 @@ "module": "ESNext", "moduleResolution": "Node", "esModuleInterop": true, - // TODO: "isolatedModules": true, + "isolatedModules": true, "jsx": "react" }, "exclude": ["**/pkg/"]