We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
16.17.0
8.15.0
4.6.1
When creating a new CheckGroup(), if the CheckGroupProps argument is using privateLocations and omits locations there is a TypeScript Error:
CheckGroup()
CheckGroupProps
privateLocations
locations
Property 'locations' is missing in type '{ alertChannels: AlertChannelWrapper[]; name: string; activated: true; muted: false; concurrency: number; frequency: Frequency; tags: string[]; privateLocations: string[]; browserChecks: { ...; }; retryStrategy: RetryStrategy; }' but required in type 'CheckGroupProps'.ts(2345)
Is it ok for locations to be an Optional parameter in the interface CheckGroupProps?
interface CheckGroupProps
checkly-cli/packages/cli/src/constructs/check-group.ts
Line 70 in bfc68da
This would match with interface CheckProps which is used by ApiCheck and BrowserCheck.
interface CheckProps
ApiCheck
BrowserCheck
checkly-cli/packages/cli/src/constructs/check.ts
Line 51 in bfc68da
Thanks!
No TypeScript error
TypeScript Error
For context, we're running one Group of checks using privateLocations and a separate Group of checks using locations.
The text was updated successfully, but these errors were encountered:
thanks @slmoore for reporting this.
Sorry, something went wrong.
fix: make locations for CheckGroup optional fixes #939 [sc-00]
0ac2211
c9bd0b2
@slmoore this was just fixed in v4.8.1 which was just published on NPM https://www.npmjs.com/package/checkly
tnolet
No branches or pull requests
Node.js version
16.17.0
NPM version
8.15.0
@checkly/cli version
4.6.1
Steps to reproduce
When creating a new
CheckGroup()
, if theCheckGroupProps
argument is usingprivateLocations
and omitslocations
there is a TypeScript Error:Is it ok for
locations
to be an Optional parameter in theinterface CheckGroupProps
?checkly-cli/packages/cli/src/constructs/check-group.ts
Line 70 in bfc68da
This would match with
interface CheckProps
which is used byApiCheck
andBrowserCheck
.checkly-cli/packages/cli/src/constructs/check.ts
Line 51 in bfc68da
Thanks!
What is expected?
No TypeScript error
What is actually happening?
TypeScript Error
Any additional comments?
For context, we're running one Group of checks using
privateLocations
and a separate Group of checks usinglocations
.The text was updated successfully, but these errors were encountered: