-
-
Notifications
You must be signed in to change notification settings - Fork 805
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π·οΈ Add TypeScript type declarations to
gitmojis
package (#1247)
* π·οΈ Add `gitmojis.d.ts` TypeScript module declaration * π§ Add `types` field to `package.json`
- Loading branch information
1 parent
ed487e0
commit 615ced3
Showing
2 changed files
with
35 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
declare module 'gitmojis' { | ||
type Gitmoji = { | ||
/** | ||
* Gitmoji unicode character | ||
* @example 'π¨', 'β‘οΈ', 'π₯', 'π' | ||
*/ | ||
readonly emoji: string; | ||
/** | ||
* Gitmoji hexadecimal entity. | ||
* @example '🎨', '⚡', '🔥', '🐛' | ||
*/ | ||
readonly entity: `&#${string};`; | ||
/** | ||
* Gitmoji use-case description. | ||
*/ | ||
readonly description: string; | ||
/** | ||
* Gitmoji name. | ||
* @example 'art', 'zap', 'fire', 'bug' | ||
*/ | ||
readonly name: string; | ||
/** | ||
* Gitmoji semver range. Can be `null` if not specified. | ||
*/ | ||
readonly semver: 'patch' | 'minor' | 'major' | null; | ||
/** | ||
* Gitmoji character formatted as a shortcode. | ||
* @example ':art:', ':zap:', ':fire:', ':bug:' | ||
*/ | ||
readonly code: `:${string}:`; | ||
} | ||
|
||
export const gitmojis: readonly Gitmoji[]; | ||
} |
615ced3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
gitmoji β ./
gitmoji-carloscuesta.vercel.app
gitmoji-git-master-carloscuesta.vercel.app
gitmoji.dev