a zip code crypto-currency system good for red ONLY

interfaces.d.ts 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. /// <reference types="node" />
  2. import { CompilerHost, CompilerOptions, Program } from 'typescript';
  3. import { FileCache } from './file-cache';
  4. import { VirtualDirStats, VirtualFileStats } from './virtual-file-utils';
  5. export interface SemverVersion {
  6. major: number;
  7. minor: number;
  8. patch: number;
  9. }
  10. export interface BuildContext {
  11. rootDir?: string;
  12. tmpDir?: string;
  13. srcDir?: string;
  14. pagesDir?: string;
  15. componentsDir?: string;
  16. directivesDir?: string;
  17. pipesDir?: string;
  18. providersDir?: string;
  19. wwwDir?: string;
  20. wwwIndex?: string;
  21. buildDir?: string;
  22. outputJsFileName?: string;
  23. outputCssFileName?: string;
  24. nodeModulesDir?: string;
  25. angularCoreDir?: string;
  26. typescriptDir?: string;
  27. ionicAngularDir?: string;
  28. coreCompilerFilePath?: string;
  29. coreDir?: string;
  30. bundledFilePaths?: string[];
  31. moduleFiles?: string[];
  32. appNgModulePath?: string;
  33. componentsNgModulePath?: string;
  34. pipesNgModulePath?: string;
  35. directivesNgModulePath?: string;
  36. isProd?: boolean;
  37. isWatch?: boolean;
  38. runAot?: boolean;
  39. runMinifyJs?: boolean;
  40. runMinifyCss?: boolean;
  41. optimizeJs?: boolean;
  42. bundler?: string;
  43. fileCache?: FileCache;
  44. inlineTemplates?: boolean;
  45. webpackWatch?: any;
  46. ionicGlobal?: any;
  47. sourcemapDir?: string;
  48. sassState?: BuildState;
  49. transpileState?: BuildState;
  50. templateState?: BuildState;
  51. bundleState?: BuildState;
  52. deepLinkState?: BuildState;
  53. target?: string;
  54. platform?: string;
  55. angularVersion?: SemverVersion;
  56. ionicAngularVersion?: SemverVersion;
  57. typescriptVersion?: SemverVersion;
  58. }
  59. export declare enum BuildState {
  60. SuccessfulBuild = 0,
  61. RequiresUpdate = 1,
  62. RequiresBuild = 2,
  63. }
  64. export interface WorkerMessage {
  65. taskModule?: string;
  66. taskWorker?: string;
  67. context?: BuildContext;
  68. workerConfig?: any;
  69. resolve?: any;
  70. reject?: any;
  71. error?: any;
  72. pid?: number;
  73. }
  74. export interface WorkerProcess {
  75. task: string;
  76. worker: any;
  77. }
  78. export interface TaskInfo {
  79. fullArg: string;
  80. shortArg: string;
  81. envVar: string;
  82. packageConfig: string;
  83. defaultConfigFile: string;
  84. }
  85. export interface File {
  86. path: string;
  87. content: string;
  88. timestamp?: number;
  89. }
  90. export interface Diagnostic {
  91. level: string;
  92. type: string;
  93. language: string;
  94. header: string;
  95. code: string;
  96. messageText: string;
  97. absFileName: string;
  98. relFileName: string;
  99. lines: PrintLine[];
  100. }
  101. export interface PrintLine {
  102. lineIndex: number;
  103. lineNumber: number;
  104. text: string;
  105. html: string;
  106. errorCharStart: number;
  107. errorLength: number;
  108. }
  109. export interface WsMessage {
  110. category: string;
  111. type: string;
  112. data: any;
  113. }
  114. export interface BuildUpdateMessage {
  115. buildId: number;
  116. reloadApp: boolean;
  117. }
  118. export interface ChangedFile {
  119. event: string;
  120. filePath: string;
  121. ext: string;
  122. }
  123. export interface FileSystem {
  124. isSync(): boolean;
  125. stat(path: string, callback: Function): any;
  126. readdir(path: string, callback: Function): any;
  127. readFile(path: string, callback: Function): any;
  128. readJson(path: string, callback: Function): any;
  129. readlink(path: string, callback: Function): any;
  130. purge(what: any): void;
  131. writeFile(filePath: string, fileContent: Buffer, callback: Function): void;
  132. mkdirp(filePath: string, callback: Function): void;
  133. mkdir(filePath: string, callback: Function): void;
  134. rmdir(filePath: string, callback: Function): void;
  135. unlink(filePath: string, callback: Function): void;
  136. }
  137. export interface VirtualFileSystem {
  138. addVirtualFile(filePath: string, fileContent: string): void;
  139. getFileContent(filePath: string): string;
  140. getDirectoryStats(path: string): VirtualDirStats;
  141. getSubDirs(directoryPath: string): string[];
  142. getFileNamesInDirectory(directoryPath: string): string[];
  143. getAllFileStats(): {
  144. [filePath: string]: VirtualFileStats;
  145. };
  146. getAllDirStats(): {
  147. [filePath: string]: VirtualDirStats;
  148. };
  149. }
  150. export interface DeepLinkDecoratorAndClass {
  151. name: string;
  152. segment: string;
  153. defaultHistory: string[];
  154. priority: string;
  155. rawString: string;
  156. className: string;
  157. }
  158. export interface DeepLinkPathInfo {
  159. absolutePath: string;
  160. userlandModulePath: string;
  161. className: string;
  162. }
  163. export interface DeepLinkConfigEntry extends DeepLinkDecoratorAndClass, DeepLinkPathInfo {
  164. }
  165. export interface AppNgModuleInfo {
  166. absolutePath: string;
  167. className: string;
  168. }
  169. export interface CodegenOptions {
  170. angularCompilerOptions: any;
  171. cliOptions: any;
  172. program: Program;
  173. compilerHost: CompilerHost;
  174. compilerOptions: CompilerOptions;
  175. }
  176. export interface TreeShakeCalcResults {
  177. updatedDependencyMap: Map<string, Set<string>>;
  178. purgedModules: Map<string, Set<string>>;
  179. }
  180. export interface WebpackStats {
  181. modules: WebpackModule[];
  182. }
  183. export interface WebpackModule {
  184. identifier: string;
  185. reasons: WebpackDependency[];
  186. }
  187. export interface WebpackDependency {
  188. moduleIdentifier: string;
  189. }
  190. export interface MagicString {
  191. overwrite(startIndex: number, endIndex: number, newContent: string): void;
  192. toString(): string;
  193. prependLeft(index: number, contentToPrepend: string): string;
  194. }
  195. export interface CoreCompiler {
  196. bundle: {
  197. (config: {
  198. srcDir: string;
  199. destDir: string;
  200. packages: Packages;
  201. debug?: boolean;
  202. }): Promise<any>;
  203. };
  204. }
  205. export interface Packages {
  206. path?: any;
  207. fs?: any;
  208. typescript?: any;
  209. nodeSass?: any;
  210. rollup?: any;
  211. uglify?: any;
  212. }