@textadventures/squiffy-types 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +7 -0
  2. package/package.json +7 -0
package/index.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ // ambient declaration for imports like `import { story } from './game.squiffy'`
2
+ declare module '*.squiffy' {
3
+ export const story: any;
4
+ const _default: unknown;
5
+ export default _default;
6
+ }
7
+ export {}; // ensure module, avoids TS trimming
package/package.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "@textadventures/squiffy-types",
3
+ "version": "0.1.0",
4
+ "types": "./index.d.ts",
5
+ "files": ["index.d.ts", "README.md", "LICENSE"],
6
+ "license": "MIT"
7
+ }