@graphql-inspector/core
Version:
Tooling for GraphQL. Compare GraphQL Schemas, check documents, find breaking changes, find similar types.
15 lines (14 loc) • 365 B
text/typescript
export interface Target {
typeId: string;
value: string;
}
export interface Rating {
target: Target;
rating: number;
}
export interface BestMatch {
ratings: Rating[];
bestMatch: Rating;
}
export declare function findBestMatch(mainString: string, targetStrings: Target[]): BestMatch;
export declare function safeString(obj: unknown): string;