This repository has been archived by the owner on Oct 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
this is a major rework of our type generation system. the new approach works like this 1. search for all `package.json` below where `sst.config.ts` is 2. next to each `package.json` we generate an `sst-env.d.ts` 3. this contains all the type definitions - it does not reference a root `sst-env.d.ts` 4. if your package.json has `@cloudflare/worker-types` we will generate a cloudflare flavor of the types
- Loading branch information
Showing
20 changed files
with
497 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,30 @@ | ||
/* This file is auto-generated by SST. Do not edit. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/// <reference path="../../sst-env.d.ts" /> | ||
import "sst" | ||
export {} | ||
declare module "sst" { | ||
export interface Resource { | ||
"Api": { | ||
"name": string | ||
"type": "sst.aws.Function" | ||
"url": string | ||
} | ||
"Astro": { | ||
"type": "sst.aws.Astro" | ||
"url": string | ||
} | ||
"Database": { | ||
"name": string | ||
"type": "sst.aws.Dynamo" | ||
} | ||
"MyBucket": { | ||
"name": string | ||
"type": "sst.aws.Bucket" | ||
} | ||
"StaticSite": { | ||
"type": "sst.aws.StaticSite" | ||
"url": string | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,30 @@ | ||
/* This file is auto-generated by SST. Do not edit. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/// <reference path="../../sst-env.d.ts" /> | ||
import "sst" | ||
export {} | ||
declare module "sst" { | ||
export interface Resource { | ||
"Api": { | ||
"name": string | ||
"type": "sst.aws.Function" | ||
"url": string | ||
} | ||
"Astro": { | ||
"type": "sst.aws.Astro" | ||
"url": string | ||
} | ||
"Database": { | ||
"name": string | ||
"type": "sst.aws.Dynamo" | ||
} | ||
"MyBucket": { | ||
"name": string | ||
"type": "sst.aws.Bucket" | ||
} | ||
"StaticSite": { | ||
"type": "sst.aws.StaticSite" | ||
"url": string | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* This file is auto-generated by SST. Do not edit. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import "sst" | ||
export {} | ||
declare module "sst" { | ||
export interface Resource { | ||
"Api": { | ||
"name": string | ||
"type": "sst.aws.Function" | ||
"url": string | ||
} | ||
"Astro": { | ||
"type": "sst.aws.Astro" | ||
"url": string | ||
} | ||
"Database": { | ||
"name": string | ||
"type": "sst.aws.Dynamo" | ||
} | ||
"MyBucket": { | ||
"name": string | ||
"type": "sst.aws.Bucket" | ||
} | ||
"StaticSite": { | ||
"type": "sst.aws.StaticSite" | ||
"url": string | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,30 @@ | ||
/* This file is auto-generated by SST. Do not edit. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/// <reference path="../../sst-env.d.ts" /> | ||
import "sst" | ||
export {} | ||
declare module "sst" { | ||
export interface Resource { | ||
"Api": { | ||
"name": string | ||
"type": "sst.aws.Function" | ||
"url": string | ||
} | ||
"Astro": { | ||
"type": "sst.aws.Astro" | ||
"url": string | ||
} | ||
"Database": { | ||
"name": string | ||
"type": "sst.aws.Dynamo" | ||
} | ||
"MyBucket": { | ||
"name": string | ||
"type": "sst.aws.Bucket" | ||
} | ||
"StaticSite": { | ||
"type": "sst.aws.StaticSite" | ||
"url": string | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,30 @@ | ||
/// <reference path="../../.sst/types.generated.ts" /> | ||
/* This file is auto-generated by SST. Do not edit. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import "sst" | ||
export {} | ||
declare module "sst" { | ||
export interface Resource { | ||
"Api": { | ||
"name": string | ||
"type": "sst.aws.Function" | ||
"url": string | ||
} | ||
"Astro": { | ||
"type": "sst.aws.Astro" | ||
"url": string | ||
} | ||
"Database": { | ||
"name": string | ||
"type": "sst.aws.Dynamo" | ||
} | ||
"MyBucket": { | ||
"name": string | ||
"type": "sst.aws.Bucket" | ||
} | ||
"StaticSite": { | ||
"type": "sst.aws.StaticSite" | ||
"url": string | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,30 @@ | ||
/* This file is auto-generated by SST. Do not edit. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import "sst" | ||
export {} | ||
declare module "sst" { | ||
export interface Resource { | ||
Api: { | ||
name: string | ||
type: "sst.aws.Function" | ||
url: string | ||
"Api": { | ||
"name": string | ||
"type": "sst.aws.Function" | ||
"url": string | ||
} | ||
Astro: { | ||
type: "sst.aws.Astro" | ||
url: string | ||
"Astro": { | ||
"type": "sst.aws.Astro" | ||
"url": string | ||
} | ||
Database: { | ||
name: string | ||
type: "sst.aws.Dynamo" | ||
"Database": { | ||
"name": string | ||
"type": "sst.aws.Dynamo" | ||
} | ||
MyBucket: { | ||
name: string | ||
type: "sst.aws.Bucket" | ||
"MyBucket": { | ||
"name": string | ||
"type": "sst.aws.Bucket" | ||
} | ||
StaticSite: { | ||
type: "sst.aws.StaticSite" | ||
url: string | ||
"StaticSite": { | ||
"type": "sst.aws.StaticSite" | ||
"url": string | ||
} | ||
} | ||
} | ||
export {} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
/* This file is auto-generated by SST. Do not edit. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import "sst" | ||
import "sst"; | ||
export {}; | ||
import "sst"; | ||
declare module "sst" { | ||
export interface Resource { | ||
} | ||
export interface Resource {} | ||
} | ||
// cloudflare | ||
|
||
// cloudflare | ||
import * as cloudflare from "@cloudflare/workers-types"; | ||
declare module "sst" { | ||
export interface Resource { | ||
"MyBucket": import("@cloudflare/workers-types").R2Bucket | ||
Hono: cloudflare.Service; | ||
MyBucket: cloudflare.R2Bucket; | ||
} | ||
} | ||
export {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package common | ||
|
||
type Links map[string]Link | ||
|
||
type Link struct { | ||
Type string `json:"type"` | ||
Properties map[string]interface{} `json:"properties"` | ||
Include []LinkInclude `json:"include"` | ||
} | ||
|
||
type LinkInclude struct { | ||
Type string `json:"type"` | ||
Other map[string]interface{} `json:"-"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.