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