0.1.4 • Published 4 years ago

functional-filetype v0.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

functional-filetype"FileType"

Module: "FileType"

Index

Type aliases

Variables

Functions

Type aliases

ContentType

Ƭ ContentType: DocumentContentType | ImageContentType

Defined in FileType.ts:26


DocumentContentType

Ƭ DocumentContentType: "application/pdf" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/json"

Defined in FileType.ts:19


DocumentType

Ƭ DocumentType: "pdf" | "excel" | "json"

Defined in FileType.ts:13


FileType

Ƭ FileType: DocumentType | ImageType

Defined in FileType.ts:17


ImageContentType

Ƭ ImageContentType: "image/png" | "image/jpeg"

Defined in FileType.ts:24


ImageType

Ƭ ImageType: "png" | "jpeg"

Defined in FileType.ts:15

Variables

Const contentTypes

contentTypes: ContentType[] = values(FileTypeToContentType)

Defined in FileType.ts:151

contentTypes: [ContentType]

Const documentTypes

documentTypes: DocumentType[] = keys(DocumentTypeToContentType)

Defined in FileType.ts:112

documentTypes: [DocumentType]

Const fileContentTypes

fileContentTypes: DocumentContentType[] = values( DocumentTypeToContentType )

Defined in FileType.ts:133

contentTypes: [DocumentContentType]

Const fileTypes

fileTypes: FileType[] = keys(FileTypeToContentType)

Defined in FileType.ts:126

fileTypes: [FileType]

Const fromContentType

fromContentType: function = prop( __, ContentTypeToFileType )

Defined in FileType.ts:252

fromContentType :: ContentType -> FileType

Type declaration:

▸ (contentType: ContentType): FileType

Parameters:

NameType
contentTypeContentType

Const fromDocumentContentType

fromDocumentContentType: function = prop(__, ContentTypeToDocumentType)

Defined in FileType.ts:234

fromDocumentContentType :: DocumentContentType -> DocumentType

Type declaration:

▸ (contentType: DocumentContentType): DocumentType

Parameters:

NameType
contentTypeDocumentContentType

Const fromImageContentType

fromImageContentType: function = prop(__, ContentTypeToImageType)

Defined in FileType.ts:243

fromImageContentType :: DocumentContentType -> DocumentType

Type declaration:

▸ (contentType: ImageContentType): ImageType

Parameters:

NameType
contentTypeImageContentType

Const imageContentTypes

imageContentTypes: ImageContentType[] = values( ImageTypeToContentType )

Defined in FileType.ts:142

imageContentTypes: [DocumentContentType]

Const imageTypes

imageTypes: ImageType[] = keys(ImageTypeToContentType)

Defined in FileType.ts:119

imageTypes: [DocumentType]

Const toContentType

toContentType: function = prop( __, FileTypeToContentType )

Defined in FileType.ts:224

toContentType :: FileType -> ContentType

Type declaration:

▸ (fileType: FileType): ContentType

Parameters:

NameType
fileTypeFileType

Const toDocumentContentType

toDocumentContentType: function = prop(__, DocumentTypeToContentType)

Defined in FileType.ts:206

toDocumentContentType :: DocumentType -> DocumentContentType

Type declaration:

▸ (fileType: DocumentType): DocumentContentType

Parameters:

NameType
fileTypeDocumentType

Const toImageContentType

toImageContentType: function = prop(__, ImageTypeToContentType)

Defined in FileType.ts:215

toImageContentType :: DocumentType -> ImageContentType

Type declaration:

▸ (imageType: ImageType): ImageContentType

Parameters:

NameType
imageTypeImageType

Functions

Const isContentType

isContentType(a: unknown): a is ContentType

Defined in FileType.ts:198

isContentType :: a -> bool

Parameters:

NameType
aunknown

Returns: a is ContentType


Const isDocumentContentType

isDocumentContentType(a: unknown): a is DocumentContentType

Defined in FileType.ts:182

isDocumentContentType :: a -> bool

Parameters:

NameType
aunknown

Returns: a is DocumentContentType


Const isDocumentType

isDocumentType(a: unknown): a is DocumentType

Defined in FileType.ts:158

isDocumentType :: a -> bool

Parameters:

NameType
aunknown

Returns: a is DocumentType


Const isFileType

isFileType(a: unknown): a is ImageType

Defined in FileType.ts:174

isFileType :: a -> bool

Parameters:

NameType
aunknown

Returns: a is ImageType


Const isImageContentType

isImageContentType(a: unknown): a is ImageContentType

Defined in FileType.ts:190

isDocumentContentType :: a -> bool

Parameters:

NameType
aunknown

Returns: a is ImageContentType


Const isImageType

isImageType(a: unknown): a is ImageType

Defined in FileType.ts:166

isImageType :: a -> bool

Parameters:

NameType
aunknown

Returns: a is ImageType

0.1.4

4 years ago

0.1.3

4 years ago

0.1.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.6

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago