SaltyMonkey лет назад: 5
Родитель
Сommit
68203c5ebf
5 измененных файлов с 352 добавлено и 367 удалено
  1. 3 0
      node_modules/rfdc/default.js
  2. 10 0
      node_modules/rfdc/index.d.ts
  3. 7 0
      node_modules/rfdc/index.test-d.ts
  4. 331 366
      package-lock.json
  5. 1 1
      package.json

+ 3 - 0
node_modules/rfdc/default.js

@@ -0,0 +1,3 @@
+'use strict'
+
+module.exports = require('./index.js')()

+ 10 - 0
node_modules/rfdc/index.d.ts

@@ -0,0 +1,10 @@
+declare namespace rfdc {
+  interface Options {
+    proto?: boolean;
+    circles?: boolean;
+  }
+}
+
+declare function rfdc(options?: rfdc.Options): <T>(input: T) => T;
+
+export = rfdc;

+ 7 - 0
node_modules/rfdc/index.test-d.ts

@@ -0,0 +1,7 @@
+import { expectType } from 'tsd';
+import rfdc = require('.');
+
+const clone = rfdc();
+
+expectType<number>(clone(5));
+expectType<{ lorem: string }>(clone({ lorem: "ipsum" }));

Разница между файлами не показана из-за своего большого размера
+ 331 - 366
package-lock.json


+ 1 - 1
package.json

@@ -14,7 +14,7 @@
   "license": "MIT",
   "devDependencies": {
     "babel-eslint": "^10.1.0",
-    "eslint": "^6.8.0",
+    "eslint": "^7.19.0",
     "eslint-plugin-node": "^11.1.0"
   },
   "dependencies": {

Некоторые файлы не были показаны из-за большого количества измененных файлов