Skip to content

Commit

Permalink
Merge branch 'Joshswooft-update-browser-shims'
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Mar 17, 2021
2 parents df3b9ca + cc8477b commit 9b8b6c0
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 typeFactories 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 typeFactories.createUnionType = dummyFn as any;
export const registerEnumType: typeof typeFactories.registerEnumType = dummyFn;

0 comments on commit 9b8b6c0

Please sign in to comment.