From 80407eb734c69894ee6d2dadd3e773752fc43c5d Mon Sep 17 00:00:00 2001 From: Adrian Contiu Date: Fri, 6 Sep 2024 15:12:11 +0300 Subject: [PATCH] [FX-5856] Delete Maybe export from picasso/utils package (#4527) --- .changeset/swift-adults-search.md | 9 +++++++++ packages/base/Utils/src/utils/index.ts | 1 - packages/base/Utils/src/utils/monads.ts | 1 - 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .changeset/swift-adults-search.md delete mode 100644 packages/base/Utils/src/utils/monads.ts diff --git a/.changeset/swift-adults-search.md b/.changeset/swift-adults-search.md new file mode 100644 index 0000000000..f7951a40c4 --- /dev/null +++ b/.changeset/swift-adults-search.md @@ -0,0 +1,9 @@ +--- +'@toptal/picasso-utils': major +'@toptal/picasso': major +--- + +### Utils + +- remove the export of "Maybe" type from the Utils package +- the type can be defined directly in your project or imported from private package `@topkit/gql-base-types` if you have access diff --git a/packages/base/Utils/src/utils/index.ts b/packages/base/Utils/src/utils/index.ts index 77e58d7fed..0759d0f389 100644 --- a/packages/base/Utils/src/utils/index.ts +++ b/packages/base/Utils/src/utils/index.ts @@ -45,7 +45,6 @@ export { default as isPointerDevice } from './is-pointer-device' export { default as isString } from './is-string' export { default as isSubstring } from './is-substring' export { default as kebabToCamelCase } from './kebab-to-camel-case' -export type { Maybe } from './monads' export { default as noop } from './noop' export { default as toTitleCase } from './to-title-case' export { default as useCombinedRefs } from './use-combined-refs' diff --git a/packages/base/Utils/src/utils/monads.ts b/packages/base/Utils/src/utils/monads.ts deleted file mode 100644 index db9272e4a0..0000000000 --- a/packages/base/Utils/src/utils/monads.ts +++ /dev/null @@ -1 +0,0 @@ -export type Maybe = T | null | undefined