Move types to a .d.ts file inside examples projects (#4171)

* Move types to a .d.ts file to avoid making types explicit

* Rename to proper types

* Move to proper place

* Add noEmit to tsconfig.json

* Add back removed code by accident
This commit is contained in:
Erika 2022-08-05 17:46:52 -04:00 committed by GitHub
parent 69db0298d0
commit c9b679e56e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 68 additions and 46 deletions

1
examples/basics/src/env.d.ts vendored Normal file
View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -9,7 +9,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}

1
examples/blog/src/env.d.ts vendored Normal file
View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -9,7 +9,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}

1
examples/docs/src/env.d.ts vendored Normal file
View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -9,7 +9,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}

View file

@ -9,7 +9,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}

View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -9,7 +9,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}

1
examples/framework-lit/src/env.d.ts vendored Normal file
View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -9,7 +9,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}

View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -11,7 +11,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}

View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -12,7 +12,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}

1
examples/framework-react/src/env.d.ts vendored Normal file
View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -9,7 +9,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}

1
examples/framework-solid/src/env.d.ts vendored Normal file
View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -12,7 +12,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}

View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -9,7 +9,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}

1
examples/framework-vue/src/env.d.ts vendored Normal file
View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -11,7 +11,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}

1
examples/minimal/src/env.d.ts vendored Normal file
View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -9,7 +9,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}

1
examples/non-html-pages/src/env.d.ts vendored Normal file
View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -9,7 +9,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}

1
examples/portfolio/src/env.d.ts vendored Normal file
View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -9,7 +9,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}

1
examples/ssr/src/env.d.ts vendored Normal file
View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -9,7 +9,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}

1
examples/subpath/src/env.d.ts vendored Normal file
View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -9,7 +9,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}

View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -9,7 +9,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}

View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -9,7 +9,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}

1
examples/with-mdx/src/env.d.ts vendored Normal file
View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -9,7 +9,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}

1
examples/with-nanostores/src/env.d.ts vendored Normal file
View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -9,7 +9,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}

View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -9,7 +9,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}

View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -9,7 +9,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Astro runtime.
"types": ["astro/client"]
// Astro will directly run your TypeScript code, no transpilation needed.
"noEmit": true
}
}