Add js web stuff to landing page + documentation
This commit is contained in:
30
go/jsruntime/types.d.ts
vendored
Normal file
30
go/jsruntime/types.d.ts
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// Ambient type declarations for tsserver. The bundler doesn't read
|
||||
// tsconfig.json — this file only exists so editor integrations
|
||||
// (tsserver, VS Code) can type-check .tsx / .ts source without an npm
|
||||
// install.
|
||||
export * from 'solid-js'
|
||||
|
||||
// --- Custom types ------------------------------------------------
|
||||
|
||||
type UUID =
|
||||
`${string & {readonly __hex: never}}-${string & {readonly __hex: never}}-${string & {readonly __hex: never}}-${string & {readonly __hex: never}}-${string & {readonly __hex: never}}`;
|
||||
|
||||
// Ammended Modules: this covers adding attributes to pre-existing html primitives
|
||||
declare module "solid-js" {
|
||||
namespace JSX {
|
||||
interface ExplicitProperties {
|
||||
// count: number;
|
||||
// name: string;
|
||||
}
|
||||
interface ExplicitAttributes {
|
||||
// count: number;
|
||||
// name: string;
|
||||
onAbort: any;
|
||||
onabort: any;
|
||||
key: any;
|
||||
}
|
||||
interface ExplicitBoolAttributes {
|
||||
// disabled: boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user