@strapi/typescript-utils 4.10.1 → 4.10.2-alpha.0

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.
package/.eslintignore CHANGED
@@ -1,2 +1,3 @@
1
1
  node_modules/
2
2
  .eslintrc.js
3
+ index.d.ts
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ // FIXME: to remove when migrating this package to ts
2
+ declare module '@strapi/typescript-utils' {
3
+ const utils: any;
4
+ export = utils;
5
+ }
package/jest.config.js CHANGED
@@ -2,4 +2,5 @@
2
2
 
3
3
  module.exports = {
4
4
  preset: '../../../jest-preset.unit.js',
5
+ displayName: 'Typescript utils',
5
6
  };
@@ -68,7 +68,6 @@ describe('Utils', () => {
68
68
  describe('Get Definition Attributes Count', () => {
69
69
  const createMainNode = (members = []) => {
70
70
  return factory.createInterfaceDeclaration(
71
- undefined,
72
71
  undefined,
73
72
  factory.createIdentifier('Foo'),
74
73
  undefined,
@@ -79,7 +78,6 @@ describe('Utils', () => {
79
78
 
80
79
  const createPropertyDeclaration = (name, type) => {
81
80
  return factory.createPropertyDeclaration(
82
- undefined,
83
81
  undefined,
84
82
  factory.createIdentifier(name),
85
83
  undefined,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/typescript-utils",
3
- "version": "4.10.1",
3
+ "version": "4.10.2-alpha.0",
4
4
  "description": "Typescript support for Strapi",
5
5
  "keywords": [
6
6
  "strapi",
@@ -20,6 +20,7 @@
20
20
  }
21
21
  ],
22
22
  "main": "./lib/index.js",
23
+ "types": "index.d.ts",
23
24
  "directories": {
24
25
  "lib": "./lib"
25
26
  },
@@ -40,5 +41,5 @@
40
41
  "node": ">=14.19.1 <=18.x.x",
41
42
  "npm": ">=6.0.0"
42
43
  },
43
- "gitHead": "23b531cef55c1583ea7d526b2baf2340a3129dad"
44
+ "gitHead": "bb1b2273381c3deae0b5bb865e50e8382926bd8c"
44
45
  }