Skip to content

Commit 57f8a10

Browse files
authored
fix(ci): revert typescript 5.0 for docs tests (#4846)
1 parent b3e2077 commit 57f8a10

3 files changed

Lines changed: 5 additions & 18 deletions

File tree

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"private": true,
1212
"devDependencies": {
1313
"typedoc": "^0.25.8",
14-
"typescript": "^5.0"
14+
"typescript": "^4.6"
1515
}
1616
}

docs/test.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -570,19 +570,6 @@ llmobs.trace({ name: 'name', kind: 'llm' }, (span, cb) => {
570570
llmobs.wrap({ kind: 'llm' }, function myLLM () {})()
571571
llmobs.wrap({ kind: 'llm', name: 'myLLM', modelName: 'myModel', modelProvider: 'myProvider' }, function myFunction () {})()
572572

573-
// decorate a function
574-
class MyClass {
575-
@llmobs.decorate({ kind: 'llm' })
576-
myLLM () {}
577-
578-
@llmobs.decorate({ kind: 'llm', name: 'myOtherLLM', modelName: 'myModel', modelProvider: 'myProvider' })
579-
myOtherLLM () {}
580-
}
581-
582-
const cls = new MyClass()
583-
cls.myLLM()
584-
cls.myOtherLLM()
585-
586573
// export a span
587574
llmobs.enable({ mlApp: 'myApp' })
588575
llmobs.trace({ kind: 'llm', name: 'myLLM' }, (span) => {

docs/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ typedoc@^0.25.8:
6161
minimatch "^9.0.3"
6262
shiki "^0.14.7"
6363

64-
typescript@^5.0:
65-
version "5.6.3"
66-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b"
67-
integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==
64+
typescript@^4.6:
65+
version "4.9.5"
66+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a"
67+
integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==
6868

6969
vscode-oniguruma@^1.7.0:
7070
version "1.7.0"

0 commit comments

Comments
 (0)