mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Added clarifying comment to emoji_utils.ts function
A comment has been added to the 'getData' function in emoji_utils.ts to clarify that the source code version does not match that of DefinitelyTyped. The note also highlights the challenges in maintaining type consistency due to outdated and non-existing properties.
This commit is contained in:
parent
5735e09738
commit
5a23b7ed4f
1 changed files with 4 additions and 0 deletions
|
@ -122,6 +122,10 @@ function getSanitizedData(...args: GetDataArgs) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getData(...[emoji, skin, set]: GetDataArgs) {
|
function getData(...[emoji, skin, set]: GetDataArgs) {
|
||||||
|
/*
|
||||||
|
The version of [the referenced source code]{@link https://github.com/missive/emoji-mart/blob/5f2ffcc/src/utils/index.js} does not match that of DefinitelyTyped.
|
||||||
|
It is also old, and non-existent properties have been added or removed, making it difficult to achieve type consistency.
|
||||||
|
*/
|
||||||
/* eslint-disable @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-return */
|
/* eslint-disable @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-return */
|
||||||
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
||||||
let emojiData: any = {};
|
let emojiData: any = {};
|
||||||
|
|
Loading…
Reference in a new issue