File tree Expand file tree Collapse file tree 3 files changed +6
-27
lines changed Expand file tree Collapse file tree 3 files changed +6
-27
lines changed Original file line number Diff line number Diff line change 86
86
" lib/p5.min.js" ,
87
87
" lib/p5.js" ,
88
88
" lib/p5.esm.js" ,
89
- " translations/**"
89
+ " translations/**" ,
90
+ " types/**"
90
91
],
91
92
"description" : " [](https://www.npmjs.com/package/p5)" ,
92
93
"bugs" : {
105
106
"workerDirectory" : [
106
107
" test"
107
108
]
108
- }
109
+ },
110
+ "types" : " ./types/p5.d.ts"
109
111
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -563,7 +563,8 @@ function generateCoreTypeDefinitions(organizedData) {
563
563
// Generate p5.d.ts
564
564
let p5Output = '// This file is auto-generated from JSDoc documentation\n\n' ;
565
565
566
- // Add reference paths to other .d.ts files
566
+ // Add reference to .d.ts files
567
+ p5Output += '/// <reference types="./global.d.ts" />\n' ;
567
568
const typeFiles = findTypeDefinitionFiles ( process . cwd ( ) , p5DtsPath ) ;
568
569
typeFiles . forEach ( file => {
569
570
p5Output += `/// <reference types="${ file } " />\n` ;
You can’t perform that action at this time.
0 commit comments