-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor:
MigrationPrismicDocumentParams
- Loading branch information
Showing
7 changed files
with
145 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,45 @@ | ||
/** | ||
* An asset to be uploaded to Prismic media library | ||
*/ | ||
export type MigrationAsset = { | ||
/** | ||
* ID of the asset used to reference it in Prismic documents. | ||
* | ||
* @internal | ||
*/ | ||
id: string | URL | File | NonNullable<ConstructorParameters<File>[0]>[0] | ||
|
||
/** | ||
* File to be uploaded as an asset. | ||
*/ | ||
file: string | URL | File | NonNullable<ConstructorParameters<File>[0]>[0] | ||
|
||
/** | ||
* Filename of the asset. | ||
*/ | ||
filename: string | ||
|
||
/** | ||
* Notes about the asset. Notes are private and only visible in Prismic media | ||
* library. | ||
*/ | ||
notes?: string | ||
|
||
/** | ||
* Credits and copyright for the asset if any. | ||
*/ | ||
credits?: string | ||
|
||
/** | ||
* Alternate text for the asset. | ||
*/ | ||
alt?: string | ||
|
||
/** | ||
* Tags associated with the asset. | ||
* | ||
* @remarks | ||
* Tags should be at least 3 characters long and 20 characters at most. | ||
*/ | ||
tags?: string[] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters