Skip to content

Commit

Permalink
feat: add create union type and register enum type to shim
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Dando committed Feb 15, 2021
1 parent 5109f30 commit 382877e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/extra/graphql-model-shim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
ObjectTypeOptions,
ReturnTypeFunc,
} from '..';
import * as src from '../type-factories';

// for webpack this is resolved this way:
// resolve: { // see: https://webpack.js.org/configuration/resolve/
Expand Down Expand Up @@ -75,3 +76,10 @@ export function Scalar(
): ClassDecorator {
return (target, key?, descriptor?) => {};
}

export function dummyFn() {
return;
}

export const createUnionType: typeof src.createUnionType = dummyFn as any;
export const registerEnumType: typeof src.registerEnumType = dummyFn;

0 comments on commit 382877e

Please sign in to comment.