Skip to content

Commit b97f548

Browse files
committed
chore: wip
1 parent 454f369 commit b97f548

File tree

1 file changed

+4
-4
lines changed
  • storage/framework/core/logging/src

1 file changed

+4
-4
lines changed

storage/framework/core/logging/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const logger = createConsola({
4444

4545
export { consola }
4646

47-
export async function writeToLogFile(message: string) {
47+
export async function writeToLogFile(message: string): Promise<void> {
4848
const formattedMessage = `[${new Date().toISOString()}] ${message}\n`
4949

5050
try {
@@ -141,17 +141,17 @@ export const log: Log = {
141141
echo: (...args: any[]) => console.log(...args),
142142
}
143143

144-
export function dump(...args: any[]) {
144+
export function dump(...args: any[]): void {
145145
args.forEach((arg) => log.debug(arg))
146146
}
147147

148-
export function dd(...args: any[]) {
148+
export function dd(...args: any[]): void {
149149
args.forEach((arg) => log.debug(arg))
150150
// we need to return a non-zero exit code to indicate an error
151151
// e.g. if used in a CDK script, we want it to fail the deployment
152152
process.exit(ExitCode.FatalError)
153153
}
154154

155-
export function echo(...args: any[]) {
155+
export function echo(...args: any[]): void {
156156
console.log(...args)
157157
}

0 commit comments

Comments
 (0)