-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-add
unsafe_
exports as deprecated
To smooth the transition for any packages relying on these exports.
- Loading branch information
Showing
10 changed files
with
40 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
export { | ||
MutableType as unsafe_MutableType, | ||
mutateSubgraph as unsafe_mutateSubgraph, | ||
mutateSubgraphWithNamespace as unsafe_mutateSubgraphWithNamespace, | ||
Mutator as unsafe_Mutator, | ||
MutatorFilterFn as unsafe_MutatorFilterFn, | ||
MutatorFlow as unsafe_MutatorFlow, | ||
MutatorFn as unsafe_MutatorFn, | ||
MutatorRecord as unsafe_MutatorRecord, | ||
MutatorReplaceFn as unsafe_MutatorReplaceFn, | ||
MutatorWithNamespace as unsafe_MutatorWithNamespace, | ||
mutateSubgraph as unsafe_mutateSubgraph, | ||
mutateSubgraphWithNamespace as unsafe_mutateSubgraphWithNamespace, | ||
} from "./mutators.js"; | ||
export { Realm as unsafe_Realm } from "./realm.js"; | ||
export { $ as unsafe_$ } from "./typekit/index.js"; | ||
|
||
import { useStateMap, useStateSet } from "../utils/state-accessor.js"; | ||
/** @deprecated use `useStateMap` from `@typespec/compiler/utils` instead */ | ||
export const unsafe_useStateMap = useStateMap; | ||
/** @deprecated use `useStateSet` from `@typespec/compiler/utils` instead */ | ||
export const unsafe_useStateSet = useStateSet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
import { unsafe_useStateMap } from "@typespec/compiler/experimental"; | ||
|
||
export { $lib } from "./lib.js"; | ||
|
||
export { $decorators, $onValidate } from "./tsp-index.js"; | ||
|
||
export { getContentType, isEventData, isEvents } from "./decorators.js"; | ||
|
||
unsafe_useStateMap(Symbol.for("foo")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters