@dosgato/templating 0.0.102 → 0.0.104

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.
Files changed (2) hide show
  1. package/dist/render.d.ts +3 -3
  2. package/package.json +1 -1
package/dist/render.d.ts CHANGED
@@ -71,10 +71,10 @@ export interface APIClient {
71
71
  * method to convert a link, as input by a user, into a URL suitable for an href, or optionally
72
72
  * an absolute URL suitable for a backend http request or non-HTML document like an RSS feed.
73
73
  */
74
- resolveLink: (lnk: string | LinkDefinition, opts?: {
74
+ resolveLink: (lnk: string | LinkDefinition | undefined, opts?: {
75
75
  absolute?: boolean;
76
76
  extension?: string;
77
- }) => Promise<string>;
77
+ }) => Promise<string | undefined>;
78
78
  /**
79
79
  * Get a link href for a page
80
80
  *
@@ -96,7 +96,7 @@ export interface APIClient {
96
96
  *
97
97
  * Will be dataloaded.
98
98
  */
99
- getImgAttributes: (link: string | AssetLink, absolute?: boolean) => Promise<PictureAttributes>;
99
+ getImgAttributes: (link: string | AssetLink | undefined, absolute?: boolean) => Promise<PictureAttributes | undefined>;
100
100
  /** Get the data for a specific page.
101
101
  *
102
102
  * Will be dataloaded.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosgato/templating",
3
- "version": "0.0.102",
3
+ "version": "0.0.104",
4
4
  "description": "A library to support building templates for dosgato CMS.",
5
5
  "type": "module",
6
6
  "exports": {