Skip to content

Typescript support #2

Description

@Wiktor102

If using typescript, you might encounter an error Cannot find module './File.component.scss' or its corresponding type declarations.

Workaround

For now, you can create a .d.ts file in your project:

declare module "*.component.css" {
	const content: string;
	export default content;
}

declare module "*.component.scss" {
	const content: string;
	export default content;
}

declare module "*.component.sass" {
	const content: string;
	export default content;
}

When I have time, this'll be added into the package itself.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions