mirror of
https://github.com/denoland/deno.git
synced 2025-08-31 07:47:46 +00:00
refactor(ext/node): change extension type parameter (#18483)
This commit changes the type parameter for "deno_node" extension, from `P: NodePermission` to `Env: NodeEnv`. `NodeEnv` is a new trait that has associated type `P: NodePermission`. This is a stepping stone to support swappable file system for the extension, that will be added as a second associated type to the `NodeEnv` trait.
This commit is contained in:
parent
6fb6b0c1f3
commit
c5302a0587
7 changed files with 71 additions and 47 deletions
|
@ -36,3 +36,8 @@ pub mod worker;
|
|||
|
||||
mod worker_bootstrap;
|
||||
pub use worker_bootstrap::BootstrapOptions;
|
||||
|
||||
pub struct RuntimeNodeEnv;
|
||||
impl deno_node::NodeEnv for RuntimeNodeEnv {
|
||||
type P = permissions::PermissionsContainer;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue