@makano/rew 1.2.52 → 1.2.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/runtime.d.ts +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makano/rew",
3
- "version": "1.2.52",
3
+ "version": "1.2.53",
4
4
  "description": "A simple coffescript runtime and app manager",
5
5
  "main": "main.js",
6
6
  "directories": {
package/runtime.d.ts CHANGED
@@ -38,6 +38,7 @@ interface ModuleConfOptionCenter {
38
38
  * @returns
39
39
  */
40
40
  getAll: (() => string) | ((str?: false) => Record<string, any>)
41
+ root: string;
41
42
  }
42
43
 
43
44
  interface ModuleConf extends ModuleConfOptionCenter {
@@ -63,7 +64,7 @@ interface ModuleConf extends ModuleConfOptionCenter {
63
64
  read: (to?: string | object) => string | object | Buffer,
64
65
  fileRoot: string,
65
66
  exists: boolean
66
- }
67
+ };
67
68
  }
68
69
 
69
70
  interface ModuleEnv {
@@ -350,6 +351,7 @@ declare namespace print {
350
351
 
351
352
  declare function input(prompt: string): string;
352
353
 
354
+ declare function genID(len: number = 15, charachters?: string): string;
353
355
 
354
356
  declare const basename: (path: string) => string;
355
357
  declare const dirname: (path: string) => string;