question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

comment last merged 👍 thanks for TS

See original GitHub issue

iv 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:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tobiemhcommented, Sep 20, 2022

@mathe42 forgot to npm publish 😖 .

Would be great to get npm publish as a GitHub workflow action whenever a tag is published in future!

1reaction
tobiemhcommented, Sep 20, 2022

SHould be published now @ NPM and DENO

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found