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
// Ref: https://www.amcharts.com/docs/v4/tutorials/using-india-version-of-world-map/ | |
export const WorldChoroplethMapGeoJSON = { | |
type: "FeatureCollection", | |
features: [ | |
{ | |
type: "Feature", | |
geometry: { | |
type: "Polygon", | |
coordinates: [ | |
[ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import { readdir, readFile, appendFile } from "fs/promises"; | |
import { join } from "path"; | |
export interface Progress { | |
type: string; // Progress type | |
timestamp: number; | |
percentage?: number; | |
message: string; | |
meta?: Record<string, unknown>; | |
isError?: boolean; |
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
import { createWriteStream, unlink } from "fs"; | |
import type { PathLike } from "fs"; | |
import type { Request } from "express"; | |
type Maybe<T> = T | null | undefined; | |
type ResponseCallback<T> = (err: Error | null, payload?: Maybe<T>) => void; | |
type RequestHandler<T> = (req: Request, file: Express.Multer.File, responseCb: ResponseCallback<T>) => void; |
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
function getPeerDependencies() { | |
const pkgPath = path.join(process.cwd(), "./package.json"); | |
const pkgJSON = JSON.parse(readFileSync(pkgPath)); | |
const peerDependencies = | |
pkgJSON.peerDependencies !== undefined | |
? Object.keys(pkgJSON.peerDependencies) | |
: []; | |
return peerDependencies; | |
} |