From 502df388ba63cf4699e3cb547842bca3f31036d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lenon?= Date: Tue, 5 Jul 2022 12:09:01 -0300 Subject: [PATCH] docs(types): update types --- package.json | 2 +- src/index.d.ts | 23 +++++++++++++++-------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index a67c5f7..08a3fa1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/artisan", - "version": "1.2.5", + "version": "1.2.6", "description": "The Athenna CLI application. Built on top of commander.", "license": "MIT", "author": "João Lenon ", diff --git a/src/index.d.ts b/src/index.d.ts index d07a583..afff2a8 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -1,4 +1,4 @@ -import { File } from '@secjs/utils' +import { File, Folder } from '@secjs/utils' import { Facade } from '@athenna/ioc' import { Command as Commander } from 'commander' @@ -151,21 +151,28 @@ export class ConsoleKernel { export class ArtisanLoader { /** - * Return all commands from artisan http application. + * Return all commands from artisan console application. * * @return {any[]} */ - static loadHttp(): any[] + static loadCommands(): any[] +} +export class TemplateHelper { /** - * Return all commands from artisan console application. + * Set the templates' folder. * - * @return {any[]} + * @param {Folder} folder */ - static loadConsole(): any[] -} + static setTemplatesFolder(folder: Folder): void + + /** + * Set the templates' folder same as the original. + * + * @param {Folder} folder + */ + static setOriginalTemplatesFolder(folder: Folder) -export class TemplateHelper { /** * Normalize the resource name removing duplicated. *