comment last merged 👍 thanks for TS
See original GitHub issueiv been trying last merged with typescript and get this observations:
- i think should update “version”: “0.3.1” to 0.3.2 maybe?
- at package.json i have to change export types as:
{ ..., "types": "./dist/types/index.d.ts", ... }
to avoid msg at import * from ‘surrealdb.js’ // error: Cannot find module ‘surrealdb.js’ or its corresponding type declarations.
its not easy to understand the use flow (for me) iv been using like this at server side (nextjs api)
import Surreal from 'surrealdb.js';
const db = new Surreal('https://surreal...:8000/rpc');
try {
await sdb.use('test', 'test');
await sdb.signin({
user: 'root',
pass: 'root',
})
const r = await sdb.query('INFO FOR DB;');
console.log(r) // successful
} catch (e) { ... }
my question is, thats ok?
what about authentication? how to setup auth? how about tokens?
ty in advance!
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
3.8 RC Regression? "Individual declarations in merged ...
Expected behavior: Expected that this compiles and users can refer to Greeting as both the type {greet: string} and the namespace of ...
Read more >Fast-forward merge support for merge trains (&4911) - GitLab
Now I'm curious if the system can perform FF-merge without rebasing the feature branch. From my understanding, a feature branch has to be...
Read more >Extend Express's Request Object with Typescript Declaration ...
Declaration Merging allows you to merge two or more distinct declaration or types declared with the same name into a single definition. This ......
Read more >Git Undo Merge – How to Revert the Last Merge Commit in Git
So, in this article, I will show you how to undo a merge in Git so you can revert to the last commit...
Read more >Pull Request Etiquette for Reviewers and Authors
A simple emoji like thumb-up 👍 or smiley 😀 is a simple acknowledgment gesture ... Do leave the outcome of the discussion as...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mathe42 forgot to
npm publish
😖 .Would be great to get
npm publish
as a GitHub workflow action whenever a tag is published in future!SHould be published now @ NPM and DENO