Export formatIdentifier from compiler lib (#1695)
* export printId as formatIdentifier * rush change --------- Co-authored-by: Travis Prescott <tjprescott@users.noreply.github.com>
This commit is contained in:
Родитель
eec090de4f
Коммит
39305ceafc
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"changes": [
|
||||
{
|
||||
"packageName": "@typespec/compiler",
|
||||
"comment": "Export formatIdentifier function from the lib",
|
||||
"type": "none"
|
||||
}
|
||||
],
|
||||
"packageName": "@typespec/compiler"
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
import prettier from "prettier";
|
||||
import * as typespecPrettierPlugin from "../formatter/index.js";
|
||||
export { printId as formatIdentifier } from "../formatter/print/printer.js";
|
||||
|
||||
export function formatTypeSpec(code: string, prettierConfig?: prettier.Options): string {
|
||||
const output = prettier.format(code, {
|
||||
|
|
Загрузка…
Ссылка в новой задаче