Skip to content

Commit d17d22f

Browse files
merge master
2 parents 106e07f + 26ce7bd commit d17d22f

File tree

2 files changed

+54
-54
lines changed

2 files changed

+54
-54
lines changed

src/registry/domain/repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ export default function repository(conf: Config): Repository {
373373
{
374374
code: strings.errors.registry.COMPONENT_PUBLISHVALIDATION_FAIL_CODE,
375375
msg: strings.errors.registry.COMPONENT_PUBLISHVALIDATION_FAIL(
376-
validationResult.error!
376+
String(validationResult.error)
377377
)
378378
},
379379
undefined as any

src/types.ts

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -238,59 +238,6 @@ export interface Plugin {
238238
callback?: (...args: unknown[]) => void;
239239
}
240240

241-
export interface Repository {
242-
getCompiledView(
243-
componentName: string,
244-
componentVersion: string,
245-
callback: Callback<string>
246-
): void;
247-
getComponent(
248-
componentName: string,
249-
componentVersion: string,
250-
calllback: Callback<Component, string>
251-
): void;
252-
getComponent(
253-
componentName: string,
254-
calllback: Callback<Component, string>
255-
): void;
256-
getComponentInfo(
257-
componentName: string,
258-
componentVersion: string,
259-
callback: Callback<Component, string>
260-
): void;
261-
getComponentPath(componentName: string, componentVersion: string): void;
262-
getComponents(callback: Callback<string[]>): void;
263-
getComponentsDetails(callback: Callback<ComponentsDetails, string>): void;
264-
getComponentVersions(
265-
componentName: string,
266-
callback: Callback<string[], string>
267-
): void;
268-
getDataProvider(
269-
componentName: string,
270-
componentVersion: string,
271-
callback: Callback<{
272-
content: string;
273-
filePath: string;
274-
}>
275-
): void;
276-
getStaticClientPath: () => string;
277-
getStaticClientMapPath: () => string;
278-
getStaticFilePath: (
279-
componentName: string,
280-
componentVersion: string,
281-
filePath: string
282-
) => string;
283-
getTemplatesInfo: () => TemplateInfo[];
284-
getTemplate: (type: string) => Template;
285-
init(callback: Callback<ComponentsList | string>): void;
286-
publishComponent(
287-
pkgDetails: any,
288-
componentName: string,
289-
componentVersion: string,
290-
callback: Callback<ComponentsDetails, { code: string; msg: string }>
291-
): void;
292-
}
293-
294241
export interface RegistryCli {
295242
add(registry: string, callback: Callback<null, string>): void;
296243
get(callback: Callback<string[], string>): void;
@@ -356,6 +303,59 @@ export interface Local {
356303
) => void;
357304
}
358305

306+
export interface Repository {
307+
getCompiledView(
308+
componentName: string,
309+
componentVersion: string,
310+
callback: Callback<string>
311+
): void;
312+
getComponent(
313+
componentName: string,
314+
componentVersion: string,
315+
calllback: Callback<Component, string>
316+
): void;
317+
getComponent(
318+
componentName: string,
319+
calllback: Callback<Component, string>
320+
): void;
321+
getComponentInfo(
322+
componentName: string,
323+
componentVersion: string,
324+
callback: Callback<Component, string>
325+
): void;
326+
getComponentPath(componentName: string, componentVersion: string): void;
327+
getComponents(callback: Callback<string[]>): void;
328+
getComponentsDetails(callback: Callback<ComponentsDetails, string>): void;
329+
getComponentVersions(
330+
componentName: string,
331+
callback: Callback<string[], string>
332+
): void;
333+
getDataProvider(
334+
componentName: string,
335+
componentVersion: string,
336+
callback: Callback<{
337+
content: string;
338+
filePath: string;
339+
}>
340+
): void;
341+
getStaticClientPath: () => string;
342+
getStaticClientMapPath: () => string;
343+
getStaticFilePath: (
344+
componentName: string,
345+
componentVersion: string,
346+
filePath: string
347+
) => string;
348+
getTemplatesInfo: () => TemplateInfo[];
349+
getTemplate: (type: string) => Template;
350+
init(callback: Callback<ComponentsList | string>): void;
351+
publishComponent(
352+
pkgDetails: any,
353+
componentName: string,
354+
componentVersion: string,
355+
callback: Callback<ComponentsDetails, { code: string; msg: string }>
356+
): void;
357+
}
358+
359359
declare global {
360360
// eslint-disable-next-line @typescript-eslint/no-namespace
361361
namespace Express {

0 commit comments

Comments
 (0)