This commit is contained in:
2024-03-22 03:47:51 +05:30
parent 8bcf3d211e
commit 89819f6fe2
28440 changed files with 3211033 additions and 2 deletions

45
node_modules/skin-tone/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,45 @@
declare namespace skinTone {
type Tone =
| 'none'
| 'white'
| 'creamWhite'
| 'lightBrown'
| 'brown'
| 'darkBrown';
}
/**
Change the skin tone of an emoji 👌👌🏻👌🏼👌🏽👌🏾👌🏿.
@param emoji - Emoji to modify.
@param tone - Skin tone to use for `emoji`.
- `'none'` : *(Removes skin tone)*
- `'white'` : 🏻 *(Fitzpatrick Type-12)*
- `'creamWhite'` : 🏼 *(Fitzpatrick Type-3)*
- `'lightBrown'` : 🏽 *(Fitzpatrick Type-4)*
- `'brown'` : 🏾 *(Fitzpatrick Type-5)*
- `'darkBrown'` : 🏿 *(Fitzpatrick Type-6)*
@example
```
import skinTone = require('skin-tone');
skinTone('👍', 'brown');
//=> '👍🏾'
skinTone('👍', 'white');
//=> '👍🏻'
// can also remove skin tone
skinTone('👍🏾', 'none');
//=> '👍'
// just passes it through when not supported
skinTone('🦄', 'darkBrown');
//=> '🦄'
```
*/
declare function skinTone(emoji: string, tone: skinTone.Tone): string;
export = skinTone;