From d1fa06ad2c3bc68fee002c3bc057c3ffb6d70ee4 Mon Sep 17 00:00:00 2001 From: Rico Huijbers Date: Thu, 9 Aug 2018 09:55:05 +0200 Subject: [PATCH] Fix two type visibility errors These types should have been exported since the functions that use them are exported. This started failing my build all of a sudden. --- packages/aws-cdk/lib/logging.ts | 2 +- packages/aws-cdk/lib/renames.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/aws-cdk/lib/logging.ts b/packages/aws-cdk/lib/logging.ts index 97d0b427158fd..813379078b897 100644 --- a/packages/aws-cdk/lib/logging.ts +++ b/packages/aws-cdk/lib/logging.ts @@ -39,7 +39,7 @@ export function data(fmt: string, ...args: any[]) { console.log(util.format(fmt, ...args)); } -type LoggerFunction = (fmt: string, ...args: any[]) => void; +export type LoggerFunction = (fmt: string, ...args: any[]) => void; /** * Create a logger output that features a constant prefix string. diff --git a/packages/aws-cdk/lib/renames.ts b/packages/aws-cdk/lib/renames.ts index 413f2ec8712db..0c54b2d634cc0 100644 --- a/packages/aws-cdk/lib/renames.ts +++ b/packages/aws-cdk/lib/renames.ts @@ -1,7 +1,7 @@ import cxapi = require('@aws-cdk/cx-api'); import util = require('@aws-cdk/util'); -type RenameTable = {[key: string]: string}; +export type RenameTable = {[key: string]: string}; /** * A class used to maintain a set of rename directives