Skip to content

Commit

Permalink
remove unused comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanhofer committed Feb 21, 2023
1 parent 6b13687 commit 99c181d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions examples/fetching-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,15 @@ type JsonPrimitive = boolean | null | number | string
// NOTE: somehow TypeScript can't distinguish between different Classes that derive from `Error`.
// As a workaround we can set a property inside that class to make inference work again.
class NetworkException extends Error {
// @ts-ignore the Playground does not persist the `noUnusedLocals` config
readonly #id = Symbol('NetworkException')
}
class DecodeJsonException extends Error {
// @ts-ignore the Playground does not persist the `noUnusedLocals` config
readonly #id = Symbol('DecodeJsonException')
}
class HttpException extends Error {
// @ts-ignore the Playground does not persist the `noUnusedLocals` config
readonly #id = Symbol('HttpException')
}
class EmptyDatasetException extends Error {
// @ts-ignore the Playground does not persist the `noUnusedLocals` config
readonly #id = Symbol('EmptyDatasetException')
}

Expand Down

0 comments on commit 99c181d

Please sign in to comment.