Importing bytes and texts:
✅ adds to your module graph
✅ type checking
✅ works with deno bundle and deno compile
Importing bytes and texts:
✅ adds to your module graph
✅ type checking
✅ works with deno bundle and deno compile
@deno_land If you can add files to the module graph, does that mean typescript can check those files?
For instance, if I wanted to import a json file, could I give the file contents to a function that expects the json object to match a specific type signature?
Example:
```ts
type ExampleRecord = {
id: number,
name: string,
isLegacy: boolean,
userType: 'basic' | 'admin' | 'super-admin',
...
}
function output(data: ExampleRecord[]) {
...
}
```