do not export the SecureTemplateOptions

Signed-off-by: Kiss Miklos <miklos@roadie.io>
This commit is contained in:
Kiss Miklos
2024-01-25 16:04:35 +01:00
parent e0e5afeaf6
commit 7052918391
4 changed files with 3 additions and 13 deletions
@@ -19,7 +19,6 @@ import { resolvePackagePath } from '@backstage/backend-common';
import {
TemplateFilter as _TemplateFilter,
TemplateGlobal as _TemplateGlobal,
NunjucksConfigs,
} from '@backstage/plugin-scaffolder-node';
import fs from 'fs-extra';
import { JsonValue } from '@backstage/types';
@@ -105,14 +104,14 @@ export type TemplateFilter = _TemplateFilter;
*/
export type TemplateGlobal = _TemplateGlobal;
export interface SecureTemplaterOptions {
interface SecureTemplaterOptions {
/* Enables jinja compatibility and the "jsonify" filter */
cookiecutterCompat?: boolean;
/* Extra user-provided nunjucks filters */
templateFilters?: Record<string, TemplateFilter>;
/* Extra user-provided nunjucks globals */
templateGlobals?: Record<string, TemplateGlobal>;
nunjucksConfigs?: NunjucksConfigs;
nunjucksConfigs?: { trimBlocks?: boolean; lstripBlocks?: boolean };
}
export type SecureTemplateRenderer = (
-6
View File
@@ -163,12 +163,6 @@ export function initRepoAndPush(input: {
commitHash: string;
}>;
// @public (undocumented)
export type NunjucksConfigs = {
trimBlocks?: boolean;
lstripBlocks?: boolean;
};
// @public (undocumented)
export const parseRepoUrl: (
repoUrl: string,
+1 -1
View File
@@ -23,4 +23,4 @@
export * from './actions';
export * from './tasks';
export * from './files';
export type { TemplateFilter, TemplateGlobal, NunjucksConfigs } from './types';
export type { TemplateFilter, TemplateGlobal } from './types';
-3
View File
@@ -23,6 +23,3 @@ export type TemplateFilter = (...args: JsonValue[]) => JsonValue | undefined;
export type TemplateGlobal =
| ((...args: JsonValue[]) => JsonValue | undefined)
| JsonValue;
/** @public */
export type NunjucksConfigs = { trimBlocks?: boolean; lstripBlocks?: boolean };