Skip to content

Commit

Permalink
feat: update formatUploadMetadataHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed May 19, 2020
1 parent eae0f20 commit badfc62
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,24 @@ Conceptually, [tus](https://tus.io/) is a great initiative. However, the existin

import {
createTusMiddleware,
formatUploadMetadataHeader,
} from 'express-tus';
import type {
ConfigurationInputType,
IncomingMessageType,
ResponseType,
StorageType,
UploadInputType,
UploadMetadataType,
UploadType,
UploadUpdateInputType,
} from 'express-tus';

/**
* Formats Tus compliant metadata header.
*/
formatUploadMetadataHeader(uploadMetadata: UploadMetadataType): string;

/**
* @property uploadExpires UNIX timestamp (in milliseconds) after which the upload will be deleted.
* @property uploadLength Indicates the size of the entire upload in bytes.
Expand Down
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ export {
createTusMiddleware,
createMemoryStorage,
} from './factories';
export {
formatUploadMetadataHeader,
} from './utilities';
export {
ExpressTusError,
NotFoundError,
Expand All @@ -16,6 +19,7 @@ export type {
ResponseType,
StorageType,
UploadInputType,
UploadMetadataType,
UploadType,
UploadUpdateInputType,
} from './types';

0 comments on commit badfc62

Please sign in to comment.