From b97abc0c1b2accd7d43df297d7585bc76d4eb4b9 Mon Sep 17 00:00:00 2001 From: Ken Chau Date: Mon, 19 Oct 2020 14:14:38 -0700 Subject: [PATCH] Change files --- change/p-profiler-2020-10-19-14-14-38-master.json | 8 ++++++++ src/index.ts | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 change/p-profiler-2020-10-19-14-14-38-master.json diff --git a/change/p-profiler-2020-10-19-14-14-38-master.json b/change/p-profiler-2020-10-19-14-14-38-master.json new file mode 100644 index 0000000..8baef6c --- /dev/null +++ b/change/p-profiler-2020-10-19-14-14-38-master.json @@ -0,0 +1,8 @@ +{ + "type": "patch", + "comment": "make sure typing allows either prefix / customOutputPath", + "packageName": "p-profiler", + "email": "kchau@microsoft.com", + "dependentChangeType": "patch", + "date": "2020-10-19T21:14:38.490Z" +} diff --git a/src/index.ts b/src/index.ts index df90680..ddc91d7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -23,9 +23,9 @@ const getTimeBasedFilename = (prefix: string) => { export interface ProfilerOptions { concurrency: number; - prefix: string; - outDir: string; - customOutputPath: string; + prefix?: string; + outDir?: string; + customOutputPath?: string; } export default class Profiler {