-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build): Updating default .d.ts pattern.
- Loading branch information
Showing
3 changed files
with
23 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ log.txt | |
|
||
## Types & Maps | ||
*.d.ts | ||
!styles.d.ts | ||
!component.d.ts | ||
*.d.ts.map | ||
*.js.map | ||
*.map | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
/** | ||
* @file | ||
* This is a TypeScript declaration file. It provides type checking and autocompletion | ||
* for TypeScript files. It can be used as a reference for future components. | ||
* | ||
* @see {@link https://www.typescriptlang.org/docs/handbook/modules.html#ambient-modules | TypeScript Ambient Modules} | ||
*/ | ||
|
||
/** | ||
* This declaration is for importing CSS files as a string. | ||
* | ||
* This is made possible by the `?inline` query parameter in Vite, which allows | ||
* the CSS file to be imported as a string instead of being injected into a `<style>` tag. | ||
* This gives us the flexibility to use the CSS content in any way we see fit within our code. | ||
* | ||
* @see {@link https://vitejs.dev/guide/features.html#disabling-css-injection-into-the-page | Disabling CSS injection into the page} | ||
*/ | ||
declare module '*.css?inline' { | ||
const content: string; | ||
export default content; | ||
} |
This file was deleted.
Oops, something went wrong.