Skip to content

Commit

Permalink
Typings
Browse files Browse the repository at this point in the history
  • Loading branch information
epessina committed Jul 1, 2024
1 parent e19aba6 commit da486e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"include": [
"src",
"scripts",
"typings",
"vite.config.ts",
"package.json"
],
Expand Down
14 changes: 8 additions & 6 deletions src/vite-env.d.ts → typings/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2023 Mia srl
* Copyright 2024 Mia srl
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -16,13 +16,15 @@
* SPDX-License-Identifier: Apache-2.0
*/

declare module "*.svg" {
import * as React from "react"
declare module '*.svg' {
import * as React from 'react'

const ReactComponent: React.FunctionComponent<React.ComponentProps<"svg"> & { title?: string }>
const ReactComponent: React.FunctionComponent<React.ComponentProps<'svg'> & { title?: string }>

export default ReactComponent
}

/// <reference types="vite-plugin-svgr/client" />
/// <reference types="vite/client" />
declare module '*.module.css' {
const classes: CSSModuleClasses
export default classes
}

0 comments on commit da486e9

Please sign in to comment.