Skip to content

Instantly share code, notes, and snippets.

@epreston
Created April 27, 2023 16:30
Show Gist options
  • Save epreston/2a0674a9fa20de2e25ca659690b77229 to your computer and use it in GitHub Desktop.
Save epreston/2a0674a9fa20de2e25ca659690b77229 to your computer and use it in GitHub Desktop.
global.d.ts - required to properly configure vite projects with some examples
// global.d.ts
/// <reference types="vite/client" />
// additional import types not included in vite/client
// declare module '*.m4a' {
// const src: string
// export default src
// }
// declare module '*.glb' {
// const src: string
// export default src
// }
// declare module '*.gltf' {
// const src: string
// export default src
// }
// declare module '*.vue' {}
@epreston
Copy link
Author

the /// on line 3, is actually interpreted in this file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment