Skip to content

Is it compatible with nestjs typescript? #1

@alymohamedhassan

Description

@alymohamedhassan

I have a project using nestjs and I want to add it my service

I created a module just for bosta and this is my code

import Bosta from 'bosta';

@Injectable()
export class BostaService {
  constructor(private bosta: Bosta) {
    this.bosta = new Bosta('API_KEY');
  }

  async createShipment(shipmentData: any) {
    return await this.bosta.deliveryStates;
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions