We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Your type library does not cover most of the type definitions for the library itself. It would be great to add more.
Typescript definitions are failing in my repository.
import { IConfig } from '@vgs/collect-js/dist/utils/IConfig'; type stateParam = { errorMessages: string[]; isDirty: boolean; isEmpty: boolean; isFocused: boolean; isTouched: boolean; isValid: boolean; name: string; }; type responseData = { errors: { detail: string; source: { pointer: string; }; status: string; title: string; }[]; }; declare module '@vgs/collect-js' { export interface VGSForm { field: ( id: string, options: { type: string; name: string; placeholder: string; validations: string[]; successColor?: string; errorColor?: string; maxLength?: number; yearLength?: number; serializers?: string[]; css?: Record<string, string>; }, ) => void; SERIALIZERS: string; submit: ( path: string, options: { mapDotToObject: string; headers: Record<string, string>; }, onResponse?: (status: number, data: responseData) => void, ) => void; state: Record<string, stateParam>; onUpdateCallback: unknown; } export interface CollectFN { init: (fn?: (state: Record<string, stateParam>) => void) => VGSFormDef; } export const loadVGSCollect: (config?: IConfig) => Promise<CollectFN>; }
The text was updated successfully, but these errors were encountered:
@nimo-juice thank you for pointing this out! We'll work on adding more types.
Sorry, something went wrong.
@AnnaKudriasheva happy to open a PR if there are recommendations on how : )
What is the status for it @AnnaKudriasheva ?
No branches or pull requests
Expected Behavior
Your type library does not cover most of the type definitions for the library itself. It would be great to add more.
Current Behavior
Typescript definitions are failing in my repository.
Possible Solution
Context
Your Environment
The text was updated successfully, but these errors were encountered: