diff --git a/docs/package.json b/docs/package.json index e551a25e94..30cb5dd848 100644 --- a/docs/package.json +++ b/docs/package.json @@ -11,6 +11,6 @@ "private": true, "devDependencies": { "typedoc": "^0.25.8", - "typescript": "^5.0" + "typescript": "^4.6" } } diff --git a/docs/test.ts b/docs/test.ts index c2a198d7d9..6c3f54c259 100644 --- a/docs/test.ts +++ b/docs/test.ts @@ -570,19 +570,6 @@ llmobs.trace({ name: 'name', kind: 'llm' }, (span, cb) => { llmobs.wrap({ kind: 'llm' }, function myLLM () {})() llmobs.wrap({ kind: 'llm', name: 'myLLM', modelName: 'myModel', modelProvider: 'myProvider' }, function myFunction () {})() -// decorate a function -class MyClass { - @llmobs.decorate({ kind: 'llm' }) - myLLM () {} - - @llmobs.decorate({ kind: 'llm', name: 'myOtherLLM', modelName: 'myModel', modelProvider: 'myProvider' }) - myOtherLLM () {} -} - -const cls = new MyClass() -cls.myLLM() -cls.myOtherLLM() - // export a span llmobs.enable({ mlApp: 'myApp' }) llmobs.trace({ kind: 'llm', name: 'myLLM' }, (span) => { diff --git a/docs/yarn.lock b/docs/yarn.lock index be52dcbd36..4b011ed3db 100644 --- a/docs/yarn.lock +++ b/docs/yarn.lock @@ -61,10 +61,10 @@ typedoc@^0.25.8: minimatch "^9.0.3" shiki "^0.14.7" -typescript@^5.0: - version "5.6.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b" - integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw== +typescript@^4.6: + version "4.9.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" + integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== vscode-oniguruma@^1.7.0: version "1.7.0"