santigimeno / node-pcsclite

Bindings over pcsclite to access Smart Cards
ISC License
170 stars 127 forks source link

Export interfaces and types #91

Closed jeppech closed 8 months ago

jeppech commented 4 years ago

I've exported the types and interfaces. So they can be imported, and used within a project.

A reason for this, would be to type an array of CardReader. Which is one of my usecases, in this instance.

import pcsc, { CardReader } from 'pcsclite'

const pcsclite = pcsc()
const readers: CardReader[] = []

pcsclite.on('reader', (reader) => {
  readers.push(reader)
})
YovanggaAnandhika commented 2 years ago

Any Update for NPM ?

pke commented 9 months ago

Could this please be merged @santigimeno?

pke commented 8 months ago

@jeppech You deleted the PR?

jeppech commented 8 months ago

@pke i deleted my fork of the repo, as we’ve moved on to other hardware, and another library, so yeah i guess, sorry. I do not think, it was going to get merged either, as this PR is almost 4 years Old. You should be able to fork the project yourself, and make the changes.