This is a snippet that uses firebase's firebase-admin
to initialize multiple firebase projects in one admin application.
import 'firebase';
# Note: VAT identification numbers for Greece use "EL", not "GR". | |
COUNTRY_CODES_EU = %w[ | |
AT BE BG CY CZ DK EE FI FR DE GR HU IE IT | |
LV LT LU MT NL PL PT RO SK SI ES SE GB | |
] |
This is a snippet that uses firebase's firebase-admin
to initialize multiple firebase projects in one admin application.
import 'firebase';
{ | |
"000": { | |
"province": "-", | |
"city": "-" | |
}, | |
"001": { | |
"province": "تهران", | |
"city": "تهران مرکزی" | |
}, | |
"002": { |
//////////////////// | |
// Exclude | |
//////////////////// | |
type MyExclude<T, L> = T extends L ? never : T; | |
type TestExclude = MyExclude<"a" | "b" | "c" | "d", "a" | "b"> | |
//////////////////// | |
// Extract | |
//////////////////// | |
type MyExtract<T, L> = T extends L ? T : never; |