@dosgato/templating 0.0.138 → 0.0.139
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/dist/apitemplate.d.ts +4 -1
- package/package.json +1 -1
package/dist/apitemplate.d.ts
CHANGED
|
@@ -217,8 +217,11 @@ export interface APIDataTemplate<DataType extends DataData = any> extends APITem
|
|
|
217
217
|
* Whatever is returned from this function will be further processed to fit well in a path -
|
|
218
218
|
* i.e. lower-cased and non-word characters replaced by a dash. If there is a duplicate data
|
|
219
219
|
* entry in the same folder, it will be automatically numerated.
|
|
220
|
+
*
|
|
221
|
+
* If you return undefined or an empty string, the name `item-1` will be used, which will
|
|
222
|
+
* then be numerated as necessary.
|
|
220
223
|
*/
|
|
221
|
-
computeName: (data: DataType) => string;
|
|
224
|
+
computeName: (data: DataType) => string | undefined;
|
|
222
225
|
}
|
|
223
226
|
export type APIAnyTemplate = APIComponentTemplate | APIPageTemplate | APIDataTemplate;
|
|
224
227
|
/**
|