Skip to content

Commit

Permalink
export World and Factory types (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
dagda1 authored Dec 1, 2022
1 parent 59aada4 commit 1c70396
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .changes/world-factory-types.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
"@simulacrum/github-api-simulator": patch
---
export World and Factory types
3 changes: 3 additions & 0 deletions packages/github-api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
15 changes: 15 additions & 0 deletions packages/github-api/src/types/world.ts
Original file line number Diff line number Diff line change
@@ -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<World>;

0 comments on commit 1c70396

Please sign in to comment.