diff --git a/package.json b/package.json index 810ab96..3732e2d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@secjs/contracts", - "version": "1.2.0", + "version": "1.2.1", "license": "MIT", "author": "João Lenon", "repository": "https://github.com/SecJS/Contracts.git", diff --git a/src/Utils/FS/DirectoryContract.ts b/src/Utils/FS/DirectoryContract.ts index c5799ab..6badee1 100644 --- a/src/Utils/FS/DirectoryContract.ts +++ b/src/Utils/FS/DirectoryContract.ts @@ -1,9 +1,8 @@ import { FileContract } from './FileContract' export interface DirectoryContract { - name: string - base: string - path: string - files: FileContract[] - folders: DirectoryContract[] + name?: string + path?: string + files?: FileContract[] + folders?: DirectoryContract[] } diff --git a/src/Utils/FS/FileContract.ts b/src/Utils/FS/FileContract.ts index 3cc5186..f93ad3f 100644 --- a/src/Utils/FS/FileContract.ts +++ b/src/Utils/FS/FileContract.ts @@ -1,6 +1,6 @@ export interface FileContract { - name: string - base: string - path: string - value: string | Buffer + name?: string + base?: string + path?: string + value?: string | Buffer }