Skip to content

Commit

Permalink
fix(ci): revert typescript 5.0 for docs tests (#4846)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrenner authored and rochdev committed Oct 31, 2024
1 parent 994bea2 commit 9a30230
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"private": true,
"devDependencies": {
"typedoc": "^0.25.8",
"typescript": "^5.0"
"typescript": "^4.6"
}
}
13 changes: 0 additions & 13 deletions docs/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
8 changes: 4 additions & 4 deletions docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9a30230

Please sign in to comment.