fix: add missing CSS module declarations to Vite-based examples#260
Merged
fix: add missing CSS module declarations to Vite-based examples#260
Conversation
Agent-Logs-Url: https://github.com/forwardsoftware/react-auth/sessions/f2b2dd54-d123-4fb4-93de-3b611b5559b1 Co-authored-by: panz3r <1754457+panz3r@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix TypeScript CSS import declarations in examples
fix: add missing CSS module declarations to Vite-based examples
Apr 4, 2026
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
panz3r
approved these changes
Apr 4, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Affected Package(s)
Related Issue(s)
Motivation
TypeScript requires a
declare module '*.css'ambient declaration to resolve bare CSS imports without type errors. Onlyshowcasehad this correctly set up;base,reqres, andrefresh-tokenwere missing it entirely or partially.Description of Changes
examples/base/src/vite-env.d.tswith/// <reference types="vite/client" />anddeclare module '*.css'examples/reqres/src/vite-env.d.tswith the same contentdeclare module '*.css'to the existingexamples/refresh-token/src/vite-env.d.ts(which had only thevite/clientreference)All four Vite-based examples now have a consistent
vite-env.d.ts:Breaking Changes
None
How to Test
Vitest) and build steps pass successfully on this PR.pnpm installto install dependencies.pnpm --filter <affected-package> testto run tests for the affected package.pnpm --filter <affected-package> buildto verify the build succeeds.pnpm --filter <affected-package> lintto check for linting errors.Checklist
Notes for Reviewers
expois React Native (no Vite), so it does not need avite-env.d.ts. No logic changes — declaration files only.