if you define the schema in the yaml file, you can generate any language type code for the firestore field.
brew tap magisystem0408/firestore-type-generator
brew install fitype
Warning
Current Support TypeScript Mode and Only String Type in types.
firegen -i ./example.yaml -o ./gen -t (ts | py)
- name: CompanyInfo # Variable name
export: true # Type Export True or False
types: # Type Firebase Field Type
id: string
name: string
- name: UserInfo
export: true
types:
id: string
name: string
export type CompanyInfo = {
id: string;
name: string;
};
export type UserInfo = {
id: string;
name: string;
};