Skip to content

Commit

Permalink
feat: Nullable in DirectoryContract and FileContract
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Dec 1, 2021
1 parent 4416a57 commit e59cb7a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
9 changes: 4 additions & 5 deletions src/Utils/FS/DirectoryContract.ts
Original file line number Diff line number Diff line change
@@ -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[]
}
8 changes: 4 additions & 4 deletions src/Utils/FS/FileContract.ts
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit e59cb7a

Please sign in to comment.