style: use comments to avoid confusion about @types/embark imports

We could use similar comments for imports related to other `@types` packages,
but the need to do it for `@types/embark` (located in
`packages/embark-typings`) seems more pressing since `import ... from "embark"`
statements in the monorepo can be so easily misunderstood.

Note that the comments, and indeed the whole lines, are automatically erased
during babel transpilation of TypeScript since TS types aren't relevant after
the `.js` files are built.
This commit is contained in:
Michael Bradley, Jr 2019-05-02 14:06:11 -05:00 committed by Michael Bradley
parent e74e52e924
commit ee17ab03e0
13 changed files with 13 additions and 13 deletions

View File

@ -1,4 +1,4 @@
import {Embark} from "embark";
import {Embark} /* supplied by @types/embark in packages/embark-typings */ from "embark";
import {checkIsAvailable, dockerHostSwap, findNextPort} from "embark-utils";
import {__} from "i18n";

View File

@ -1,7 +1,7 @@
import bodyParser from "body-parser";
import "colors";
import cors from "cors";
import {Embark, Plugins} from "embark";
import {Embark, Plugins} /* supplied by @types/embark in packages/embark-typings */ from "embark";
import express, {NextFunction, Request, Response} from "express";
import expressWs from "express-ws";
import findUp from "find-up";

View File

@ -1,4 +1,4 @@
import {Callback, CompilerPluginObject, Embark, Plugins} from "embark";
import {Callback, CompilerPluginObject, Embark, Plugins} /* supplied by @types/embark in packages/embark-typings */ from "embark";
import {__} from "i18n";
const async = require("embark-async-wrapper");

View File

@ -1,5 +1,5 @@
import Ajv from "ajv";
import { Logger } from "embark";
import { Logger } /* supplied by @types/embark in packages/embark-typings */ from "embark";
import {__} from "i18n";
export enum Framework {

View File

@ -1,4 +1,4 @@
import { Embark } from "embark";
import { Embark } /* supplied by @types/embark in packages/embark-typings */ from "embark";
import Handlebars from "handlebars";
import {__} from "i18n";
import * as path from "path";

View File

@ -1,4 +1,4 @@
import { Contract, Embark } from "embark";
import { Contract, Embark } /* supplied by @types/embark in packages/embark-typings */ from "embark";
import Handlebars from "handlebars";
import {__} from "i18n";
import * as path from "path";

View File

@ -1,4 +1,4 @@
import { Contract, Embark } from "embark";
import { Contract, Embark } /* supplied by @types/embark in packages/embark-typings */ from "embark";
import { CommandOptions, ContractLanguage, Framework } from "./commandOptions";
import { SolidityBuilder } from "./contractLanguage/solidityBuilder";
import { ReactBuilder } from "./framework/reactBuilder";

View File

@ -1,5 +1,5 @@
import Ajv from "ajv";
import { Logger } from "embark";
import { Logger } /* supplied by @types/embark in packages/embark-typings */ from "embark";
import {__} from "i18n";
import { schema } from "./schema";
const fs = require("fs");

View File

@ -1,5 +1,5 @@
import { red } from "colors";
import { Logger } from "embark";
import { Logger } /* supplied by @types/embark in packages/embark-typings */ from "embark";
import { performance, PerformanceObserver } from "perf_hooks";
import prettyMs from "pretty-ms";
import { last, recursiveMerge } from "./collections";

View File

@ -1,4 +1,4 @@
import { Contract } from "embark";
import { Contract } /* supplied by @types/embark in packages/embark-typings */ from "embark";
import { ABIDefinition } from "web3/eth/abi";
import { decodeParams, sha3 } from "./web3Utils";

View File

@ -3,7 +3,7 @@ import * as i18n from "i18n";
import * as osLocale from "os-locale";
import * as path from "path";
import { Maybe } from "embark";
import { Maybe } /* supplied by @types/embark in packages/embark-typings */ from "embark";
enum LocalType {
Specified = "specified",

View File

@ -1,6 +1,6 @@
import VM from "./vm";
const fs = require("./fs");
import { Callback, Embark, Events, Logger } from "embark";
import { Callback, Embark, Events, Logger } /* supplied by @types/embark in packages/embark-typings */ from "embark";
import Web3 from "web3";
const EmbarkJS = require("embarkjs");

View File

@ -1,5 +1,5 @@
import { each } from "async";
import { Callback, Logger } from "embark";
import { Callback, Logger } /* supplied by @types/embark in packages/embark-typings */ from "embark";
import { NodeVM, NodeVMOptions } from "vm2";
import { recursiveMerge } from "embark-utils";