Importing bytes and texts:
✅ adds to your module graph
✅ type checking
✅ works with deno bundle and deno compile

https://deno.com/blog/v2.4#importing-text-and-bytes

For more video updates, demos, tutorials, and technical talks from the team, check out our YouTube: https://youtube.com/@deno_land/
Before you continue to YouTube

@deno_land yay! i can finally import package.json to pick the version number from there! or.. maybe there's a cleaner way to DRY?

@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[]) {
...
}
```

@spartanatreyu yes, for json imports it will be typed.