@gmod/bed
Version:
A BED file format parser with autoSql support
24 lines (23 loc) • 571 B
TypeScript
export interface AutoSqlField {
size?: number | string;
type: string;
name: string;
comment: string;
vals?: string[];
}
export interface AutoSqlPreSchema {
fields: AutoSqlField[];
}
export declare function detectTypes(autoSql: AutoSqlPreSchema): {
fields: {
isArray: boolean;
arrayIsNumeric: boolean;
isNumeric: boolean;
size?: number | string;
type: string;
name: string;
comment: string;
vals?: string[];
}[];
};
export type AutoSqlSchema = ReturnType<typeof detectTypes>;