Skip to content

Commit

Permalink
Make bucket type a zod object
Browse files Browse the repository at this point in the history
  • Loading branch information
danielz-mnx committed Jul 23, 2024
1 parent e145952 commit 55c54a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mdk-lib",
"version": "1.0.8",
"version": "1.0.9",
"description": "Monax Development Kit - Lib",
"type": "module",
"license": "Apache-2.0",
Expand Down
4 changes: 3 additions & 1 deletion src/services/storage-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import { Storage } from '@google-cloud/storage';
import type { SaveData, SaveOptions } from '@google-cloud/storage/build/esm/src/file.js';
import type { StorageConfig } from 'mdk-schema';
import { getKnownExtensionMimeType } from 'mdk-schema/dist/mime-types.js';
import { z } from 'zod';

export { SaveData, SaveOptions } from '@google-cloud/storage/build/esm/src/file.js';

export type BucketType = 'public' | 'private';
export type BucketType = z.infer<typeof BucketType>;
export const BucketType = z.enum(['public', 'private']);

export type IStorageService = InstanceType<typeof StorageService>;

Expand Down

0 comments on commit 55c54a3

Please sign in to comment.