Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
inkognitro committed Oct 14, 2024
1 parent c8a8784 commit d36fe8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ code into it:
```typescript
// api.generate.js

import { generateOas3ToTs } from 'oas-tszod-gen';
const {generateOas3ToTs} = require('oas-tszod-gen');
const oas3Specification = require('./api.specs.json');

generateOas3ToTs({
Expand All @@ -64,7 +64,7 @@ generateOas3ToTs({
// optional:
// The list of separators which should be considered for the outputPath creation from a
// component name. The outputPath itself is an array of strings (see explanation in one
// of the sections below). By default the following configuration is taken:
// of the sections below). By default, the following configuration is taken:
// ['.', '/', '\\']
componentOutputPathSeparators: ['.', '/', '\\', '_'],

Expand Down
1 change: 1 addition & 0 deletions src/templates/core/authRequestHandler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {Request, RequestHandler, RequestResult} from './core';

function base64Encode(value: string): string {
// @ts-ignore
const isBrowserEnv = typeof window !== 'undefined';
const buffer = Buffer.from(value);
return isBrowserEnv ? btoa(value) : buffer.toString('base64');
Expand Down

0 comments on commit d36fe8d

Please sign in to comment.