@kubb/ast 5.0.0-beta.56 → 5.0.0-beta.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -111,11 +111,11 @@ const types = collect<string>(root, {
111
111
  ### Guards
112
112
 
113
113
  ```ts
114
- import { isSchemaNode, narrowSchema } from '@kubb/ast'
114
+ import { narrowSchema, schemaDef } from '@kubb/ast'
115
115
  import type { Node } from '@kubb/ast/types'
116
116
 
117
117
  function process(node: Node) {
118
- if (isSchemaNode(node)) {
118
+ if (schemaDef.is(node)) {
119
119
  const obj = narrowSchema(node, 'object')
120
120
  obj?.properties?.forEach((p) => console.log(p.name))
121
121
  }