2.1.3 • Published 6 months ago

@types/adeira__graphql-global-id v2.1.3

Weekly downloads
446
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/adeira__graphql-global-id

Summary

This package contains type definitions for @adeira/graphql-global-id (https://github.com/adeira/universe/tree/master/src/graphql-global-id).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/adeira__graphql-global-id.

index.d.ts

// Type definitions for @adeira/graphql-global-id 2.1
// Project: https://github.com/adeira/universe/tree/master/src/graphql-global-id
// Definitions by: Martin Zlámal <https://github.com/mrtnzlml>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 4.1

import { GraphQLFieldConfig, GraphQLResolveInfo } from 'graphql';

export function fromGlobalId(opaqueID: string): string;

export function toGlobalId(type: string, id: string | number): string;

export function isTypeOf(type: string, opaqueID: unknown): boolean;

type FetchFnType = (object: any, context: any, info: GraphQLResolveInfo) => string | number;

export default function globalIdField(
    idFetcher: FetchFnType,
    unmaskedIdFetcher?: FetchFnType,
): GraphQLFieldConfig<any, any>;

export {};

Additional Details

  • Last updated: Thu, 17 Feb 2022 23:01:35 GMT
  • Dependencies: @types/graphql
  • Global values: none

Credits

These definitions were written by Martin Zlámal.

2.1.2

7 months ago

2.1.1

8 months ago

2.1.3

6 months ago

2.1.0

2 years ago

1.2.0

3 years ago

1.1.0

4 years ago