@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.
@@ -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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosgato/templating",
3
- "version": "0.0.138",
3
+ "version": "0.0.139",
4
4
  "description": "A library to support building templates for dosgato CMS.",
5
5
  "type": "module",
6
6
  "exports": {