Skip to content

Commit

Permalink
Merge pull request #4488 from material-components:enable-catalog-type…
Browse files Browse the repository at this point in the history
…checking

PiperOrigin-RevId: 542956322
  • Loading branch information
copybara-github committed Jun 23, 2023
2 parents ec6e7ff + 07668e6 commit cf5d893
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ catalog/site/components/*.md
catalog/site/components/images
catalog/*.tsbuildinfo
catalog/stories/*/
!catalog/stories/components/
!catalog/stories/components/
!catalog/src/types/**/*.d.ts
9 changes: 7 additions & 2 deletions catalog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"build:dev": {
"dependencies": [
"build:dev:eleventy",
"build:dev:ts"
"build:dev:ts",
"build:type-check"
]
},
"build:dev:eleventy": {
Expand Down Expand Up @@ -66,12 +67,16 @@
"clean": "if-file-deleted",
"output": [
"tsconfig.tsbuildinfo"
],
"dependencies": [
"..:build"
]
},
"build:prod": {
"dependencies": [
"build:prod:eleventy",
"build:prod:ts"
"build:prod:ts",
"build:type-check"
]
},
"build:prod:eleventy": {
Expand Down
11 changes: 11 additions & 0 deletions catalog/src/types/is-land.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/

declare module '@11ty/is-land' {
export class Island extends HTMLElement {
forceFallback(): void;
}
}
3 changes: 2 additions & 1 deletion catalog/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"useDefineForClassFields": false,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"skipLibCheck": true
"skipLibCheck": true,
"types": []
},
"include": ["src/**/*", "stories/*", "stories/components"],
"exclude": []
Expand Down

0 comments on commit cf5d893

Please sign in to comment.