Port 6fa4054a5d
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
th-downstream
parent
902b2175df
commit
ac97d77cb3
@ -1,4 +1,4 @@
|
|||||||
export default function compareId (id1, id2) {
|
export default function compareId (id1: string, id2: string) {
|
||||||
if (id1 === id2) {
|
if (id1 === id2) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
export interface MastodonMap<T> {
|
||||||
|
get<K extends keyof T>(key: K): T[K];
|
||||||
|
has<K extends keyof T>(key: K): boolean;
|
||||||
|
set<K extends keyof T>(key: K, value: T[K]): this;
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ValueOf<T> = T[keyof T];
|
@ -1,4 +1,4 @@
|
|||||||
export const decode = base64 => {
|
export const decode = (base64: string): Uint8Array => {
|
||||||
const rawData = window.atob(base64);
|
const rawData = window.atob(base64);
|
||||||
const outputArray = new Uint8Array(rawData.length);
|
const outputArray = new Uint8Array(rawData.length);
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
export const toServerSideType = columnType => {
|
export const toServerSideType = (columnType: string) => {
|
||||||
switch (columnType) {
|
switch (columnType) {
|
||||||
case 'home':
|
case 'home':
|
||||||
case 'notifications':
|
case 'notifications':
|
Loading…
Reference in new issue