run yarn tsc4p1 = "using private name" error
run yarn tsc4p0 = "using private name" error
| // Be in a content list page | |
| // Paste and run this code in the dev tools console | |
| await main(); | |
| async function main() { | |
| const linksToViewerPage = [ | |
| ...document.querySelectorAll("#listViewContainer a.detail-title"), | |
| ]; | |
| let step = linksToViewerPage.map((aElement) => { |
| // Cannot re-export a type when the '--isolatedModules' flag is provided.ts(1205) | |
| export { IMyInterface } from "./types" | |
| // this works! | |
| import { IMyInterface as IMyInterfaceForExport } from "./types" | |
| export type IMyInterface = IMyInterfaceForExport; | |
| // And Also: | |
| export type IMyInterface2 = import("./types").IMyInterface; |
| export function funci() { | |
| return "AHH HHHHAAA"; | |
| } |
| // https://github.com/dominictarr/JSONStream | |
| // @ts-ignore | |
| import JSONStream from "JSONStream"; | |
| import { Observable } from "rxjs"; | |
| class Bla { | |
| public creativesOfChannelV4StreamEndpoint<T=any>( | |
| channel: T, | |
| brandId: string, |
| # package directories | |
| node_modules | |
| jspm_packages | |
| # Serverless directories | |
| .serverless |
| import { | |
| Entity, | |
| JoinColumn, | |
| ManyToOne, | |
| Column, | |
| PrimaryGeneratedColumn, | |
| ManyToMany, | |
| JoinTable, | |
| OneToMany, | |
| CreateDateColumn, |
Basic example of fetch api + expressjs/multer using files and text fields