New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript definition file. #136

Merged
merged 5 commits into from Oct 17, 2017

Conversation

Projects
None yet
2 participants
@MarcusCalidus
Copy link

MarcusCalidus commented Oct 17, 2017

In the attempt of using node-firebird within our existing typescript projects there was the need to include a typescript definition file. It does not contain the full range of all functions. Only those we needed in our project. But for a start it might suffice.
ToDo: add Blob functions

correct syntax for typescript include:

import * as Firebird from 'node-firebird';
import { Options, ISOLATION_READ_COMMITED, Isolation, Transaction } from 'node-firebird';

simple script exec example in typescript:

Firebird.attach(this.options, (err: any, db: Firebird.Database) => {
db.execute(
'execute procedure My_Super_Function',
[],
(err) => {
if (err) { console.error(err); }
db.detach((err) => {
if (err) { console.error(err); }
});
})
});

@mariuz mariuz merged commit 9a4793c into hgourvest:master Oct 17, 2017

@mariuz mariuz referenced this pull request Oct 17, 2017

Closed

typescript definition files #98

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment