refactor: re-export type

This commit is contained in:
Methapon Metanipat 2024-11-22 10:26:59 +07:00
parent c56d14b2ea
commit 7d76521fb6
3 changed files with 8 additions and 1 deletions

View file

@ -498,4 +498,6 @@ const useCustomerStore = defineStore('api-customer', () => {
}; };
}); });
export * from './types.ts';
export default useCustomerStore; export default useCustomerStore;

View file

@ -1,7 +1,10 @@
import { District, Province, SubDistrict } from '../address'; import { District, Province, SubDistrict } from '../address';
import { Status } from '../types'; import { Status } from '../types';
export type CustomerType = 'CORP' | 'PERS'; export enum CustomerType {
Corporate = 'CORP',
Person = 'PERS',
}
export type Customer = { export type Customer = {
registeredBranchId: string; registeredBranchId: string;

View file

@ -531,4 +531,6 @@ const useUserStore = defineStore('api-user', () => {
}; };
}); });
export * from './types';
export default useUserStore; export default useUserStore;