functional-filetype v0.1.4
functional-filetype › "FileType"
Module: "FileType"
Index
Type aliases
Variables
- contentTypes
- documentTypes
- fileContentTypes
- fileTypes
- fromContentType
- fromDocumentContentType
- fromImageContentType
- imageContentTypes
- imageTypes
- toContentType
- toDocumentContentType
- toImageContentType
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:
Name | Type |
---|---|
contentType | ContentType |
Const
fromDocumentContentType
• fromDocumentContentType: function = prop(__, ContentTypeToDocumentType)
Defined in FileType.ts:234
fromDocumentContentType :: DocumentContentType -> DocumentType
Type declaration:
▸ (contentType
: DocumentContentType): DocumentType
Parameters:
Name | Type |
---|---|
contentType | DocumentContentType |
Const
fromImageContentType
• fromImageContentType: function = prop(__, ContentTypeToImageType)
Defined in FileType.ts:243
fromImageContentType :: DocumentContentType -> DocumentType
Type declaration:
▸ (contentType
: ImageContentType): ImageType
Parameters:
Name | Type |
---|---|
contentType | ImageContentType |
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:
Name | Type |
---|---|
fileType | FileType |
Const
toDocumentContentType
• toDocumentContentType: function = prop(__, DocumentTypeToContentType)
Defined in FileType.ts:206
toDocumentContentType :: DocumentType -> DocumentContentType
Type declaration:
▸ (fileType
: DocumentType): DocumentContentType
Parameters:
Name | Type |
---|---|
fileType | DocumentType |
Const
toImageContentType
• toImageContentType: function = prop(__, ImageTypeToContentType)
Defined in FileType.ts:215
toImageContentType :: DocumentType -> ImageContentType
Type declaration:
▸ (imageType
: ImageType): ImageContentType
Parameters:
Name | Type |
---|---|
imageType | ImageType |
Functions
Const
isContentType
▸ isContentType(a
: unknown): a is ContentType
Defined in FileType.ts:198
isContentType :: a -> bool
Parameters:
Name | Type |
---|---|
a | unknown |
Returns: a is ContentType
Const
isDocumentContentType
▸ isDocumentContentType(a
: unknown): a is DocumentContentType
Defined in FileType.ts:182
isDocumentContentType :: a -> bool
Parameters:
Name | Type |
---|---|
a | unknown |
Returns: a is DocumentContentType
Const
isDocumentType
▸ isDocumentType(a
: unknown): a is DocumentType
Defined in FileType.ts:158
isDocumentType :: a -> bool
Parameters:
Name | Type |
---|---|
a | unknown |
Returns: a is DocumentType
Const
isFileType
▸ isFileType(a
: unknown): a is ImageType
Defined in FileType.ts:174
isFileType :: a -> bool
Parameters:
Name | Type |
---|---|
a | unknown |
Returns: a is ImageType
Const
isImageContentType
▸ isImageContentType(a
: unknown): a is ImageContentType
Defined in FileType.ts:190
isDocumentContentType :: a -> bool
Parameters:
Name | Type |
---|---|
a | unknown |
Returns: a is ImageContentType
Const
isImageType
▸ isImageType(a
: unknown): a is ImageType
Defined in FileType.ts:166
isImageType :: a -> bool
Parameters:
Name | Type |
---|---|
a | unknown |
Returns: a is ImageType