Skip to content

Commit 7f003f4

Browse files
Add @deprecated JSDoc tag to getObject method
Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
1 parent f9cc0a4 commit 7f003f4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/client/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ export class ObjectStackClient {
136136

137137
/**
138138
* Get a specific object definition by name
139-
* Legacy method - prefer getItem for consistency
139+
* @deprecated Use `getItem('object', name)` instead for consistency with spec protocol
140+
* @param name - Object name (snake_case identifier)
140141
*/
141142
getObject: async (name: string) => {
142143
const route = this.getRoute('metadata');

0 commit comments

Comments
 (0)