Skip to content

Commit

Permalink
Merge pull request #131 from nathan-at-least/type-alias-for-clearer-docs
Browse files Browse the repository at this point in the history
Switch from `use … as IpfsClient` to type aliases for clearer API docs.
  • Loading branch information
ferristseng authored Aug 31, 2023
2 parents 33e0149 + d758991 commit 81da5ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ipfs-api-backend-actix/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ extern crate actix_multipart_rfc7578 as multipart;
mod backend;
mod error;

pub use crate::{backend::ActixBackend as IpfsClient, error::Error};
pub type IpfsClient = ActixBackend;
pub use crate::{backend::ActixBackend, error::Error};
pub use ipfs_api_prelude::{
request::{self, KeyType, Logger, LoggingLevel, ObjectTemplate},
response, ApiError, BackendWithGlobalOptions, GlobalOptions, IpfsApi, TryFromUri,
Expand Down
3 changes: 2 additions & 1 deletion ipfs-api-backend-hyper/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ extern crate hyper_multipart_rfc7578 as multipart;
mod backend;
mod error;

pub use crate::{backend::HyperBackend as IpfsClient, error::Error};
pub type IpfsClient = HyperBackend;
pub use crate::{backend::HyperBackend, error::Error};
pub use ipfs_api_prelude::{
request::{self, KeyType, Logger, LoggingLevel, ObjectTemplate},
response, ApiError, BackendWithGlobalOptions, GlobalOptions, IpfsApi, TryFromUri,
Expand Down

0 comments on commit 81da5ec

Please sign in to comment.