Skip to content

Commit 0167ecc

Browse files
Copilothotlong
andcommitted
Fix TypeScript errors and configure workspace for plugin-driver-memory example
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 2b527e0 commit 0167ecc

3 files changed

Lines changed: 30 additions & 4 deletions

File tree

examples/plugin-driver-memory/src/demo.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,28 +155,28 @@ async function main() {
155155
filters: [['priority', '=', 'high']]
156156
});
157157
console.log(`\n🔥 High priority projects: ${highPriority.length}`);
158-
highPriority.forEach(p => console.log(` - ${p.name}`));
158+
highPriority.forEach((p: any) => console.log(` - ${p.name}`));
159159

160160
// Find active projects
161161
const active = await projects.find({
162162
filters: [['status', '=', 'active']]
163163
});
164164
console.log(`\n⚡ Active projects: ${active.length}`);
165-
active.forEach(p => console.log(` - ${p.name}`));
165+
active.forEach((p: any) => console.log(` - ${p.name}`));
166166

167167
// Find projects with budget > 40000
168168
const largeBudget = await projects.find({
169169
filters: [['budget', '>', 40000]]
170170
});
171171
console.log(`\n💰 Projects with budget > $40,000: ${largeBudget.length}`);
172-
largeBudget.forEach(p => console.log(` - ${p.name}: $${p.budget.toLocaleString()}`));
172+
largeBudget.forEach((p: any) => console.log(` - ${p.name}: $${p.budget.toLocaleString()}`));
173173

174174
// Sort by budget (descending)
175175
const sortedByBudget = await projects.find({
176176
sort: [['budget', 'desc']]
177177
});
178178
console.log(`\n📈 Projects sorted by budget (desc):`);
179-
sortedByBudget.forEach(p => console.log(` - ${p.name}: $${p.budget.toLocaleString()}`));
179+
sortedByBudget.forEach((p: any) => console.log(` - ${p.name}: $${p.budget.toLocaleString()}`));
180180

181181
// ====================================================================
182182
// Step 6: Update Example

pnpm-lock.yaml

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ packages:
77
- examples/integrations/*
88
- examples/showcase/*
99
- examples/drivers/*
10+
- examples/plugin-driver-memory
1011
- apps/*
1112

1213
onlyBuiltDependencies:

0 commit comments

Comments
 (0)