diff --git a/.changes/world-factory-types.md b/.changes/world-factory-types.md new file mode 100644 index 00000000..3848d97b --- /dev/null +++ b/.changes/world-factory-types.md @@ -0,0 +1,4 @@ +--- +"@simulacrum/github-api-simulator": patch +--- +export World and Factory types \ No newline at end of file diff --git a/packages/github-api/src/index.ts b/packages/github-api/src/index.ts index 623c523b..877b060d 100644 --- a/packages/github-api/src/index.ts +++ b/packages/github-api/src/index.ts @@ -9,5 +9,8 @@ export type { User, RepositoryOwner } from './types/graphql'; + +export type { World, Factory } from './types/world'; + export * from './service/standaloneServer'; export * from './main'; diff --git a/packages/github-api/src/types/world.ts b/packages/github-api/src/types/world.ts new file mode 100644 index 00000000..a7492b67 --- /dev/null +++ b/packages/github-api/src/types/world.ts @@ -0,0 +1,15 @@ +import type { GithubAccount, GithubCommit, GithubOrganization, GithubRef, GithubRepository, GithubTeam, GithubTeamMembership, User } from './graphql'; +import type { GraphGen } from '@frontside/graphgen'; + +export interface World { + User: User; + GithubAccount: GithubAccount; + GithubCommit: GithubCommit; + GithubOrganization: GithubOrganization; + GithubRef: GithubRef; + GithubRepository: GithubRepository; + GithubTeam: GithubTeam; + GithubTeamMembership: GithubTeamMembership; +} + +export type Factory = GraphGen;