tursodatabase / tursodatabase/libsql-client-ts
What is the correct time format of syncInterval (milliseconds or seconds)?
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 576
- Forks
- 69
- PR merge metrics
- No merged PRs in 30d
Description
Is the expected type format for syncInterval second or milliseconds? I believe it is seconds, but I'm seeing different formats depending on where I look. Below is the example given in the README for this repo, but in other docs it's in seconds.
export const turso = createClient({
url: "file:local.db",
syncUrl: process.env.TURSO_DATABASE_URL,
authToken: process.env.TURSO_AUTH_TOKEN,
syncInterval: 60000,
});
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the syncInterval example in the README with the other documentation mentioned in the issue, then verify which time unit the TypeScript client expects. Done means the README and other docs consistently state the correct format and example value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100