Skip to content

Commit

Permalink
hosttype
Browse files Browse the repository at this point in the history
  • Loading branch information
danylo-safonov-solid committed Sep 15, 2023
1 parent 7dfe833 commit c232814
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/src/client_options.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import 'dart:js_interop';
import 'dart:js_util';

import 'package:deno_postgres_interop/src/transport.dart';

/// [deno-postgres@v0.17.0/ClientOptions](https://deno.land/x/postgres@v0.17.0/mod.ts?s=ClientOptions).
@JS()
Expand All @@ -24,9 +27,8 @@ extension ClientOptionsProps on ClientOptions {
/// [deno-postgres@v0.17.0/ClientOptions/connection](https://deno.land/x/postgres@v0.17.0/mod.ts?s=ClientOptions#prop_connection).
// external Partial<ConnectionOptions> get connection;

// TODO: convert
/// [deno-postgres@v0.17.0/ClientOptions/host_type](https://deno.land/x/postgres@v0.17.0/mod.ts?s=ClientOptions#prop_host_type).
// external Transport get host_type;
Transport get hostType => Transport.parse(getProperty(this, 'host_type'));

/// [deno-postgres@v0.17.0/ClientOptions/options](https://deno.land/x/postgres@v0.17.0/mod.ts?s=ClientOptions#prop_options).
// external String | Record<string, string> get options;
Expand Down

0 comments on commit c232814

Please sign in to comment.