v3.25.1
Consolidated Schedule of Investments
shares in Thousands, $ in Thousands
12 Months Ended
Dec. 31, 2024
USD ($)
shares
Dec. 31, 2023
USD ($)
shares
Dec. 31, 2024
CAD ($)
shares
Dec. 31, 2023
CAD ($)
shares
Jun. 30, 2023
USD ($)
Mar. 31, 2023
USD ($)
Dec. 31, 2022
USD ($)
Schedule of Investments [Line Items]              
Investments, amortized cost $ 695,240,000 $ 740,021,000          
Investments, fair value $ 642,213,000 $ 696,168,000          
Percent of net assets 224.40% 219.70% 224.40% 219.70%      
Total investments and money market funds amortized cost $ 708,489,000            
Total investments and money market funds fair value $ 655,462,000            
Total investments and money market funds percentage 229.00%   229.00%        
Qualifying assets required of acquiree at time of acquisition of total assets 70.00% 70.00%          
Qualifying assets of acquired of total assets 80.70% 83.30%          
Investments of net assets 224.40% 219.70%          
Investment Of total assets 94.90% 95.30%          
Unrealized appreciation $ 20,000            
Unrealized depreciation   $ (43,000)          
Investment, Identifier [Axis]: AB Centers Acquisition Corporation, First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:AbCentersAcquisitionCorporationMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Health Care Facilities   Health Care Facilities        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 0.75%   0.75%        
Spread Above Index 5.25%   5.25%        
Interest Rate 9.78%   9.78%        
Acquisition Date Sep. 19, 2024            
Maturity Date Jul. 02, 2031   Jul. 02, 2031        
Principal/Share Amount $ 78,000            
Investments, amortized cost 78,000            
Investments, fair value $ 80,000            
Investment, Identifier [Axis]: AB Centers Acquisition Corporation, First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:AbCentersAcquisitionCorporationMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Health Care Facilities   Health Care Facilities        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 0.75%   0.75%        
Spread Above Index 5.25%   5.25%        
Interest Rate 9.78%   9.78%        
Acquisition Date Sep. 19, 2024            
Maturity Date Jul. 02, 2031   Jul. 02, 2031        
Investments, fair value $ 5,000            
Investment, Identifier [Axis]: AB Centers Acquisition Corporation, First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:AbCentersAcquisitionCorporationMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Health Care Facilities   Health Care Facilities        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 0.75%   0.75%        
Spread Above Index 5.25%   5.25%        
Interest Rate 9.79%   9.79%        
Acquisition Date Sep. 19, 2024            
Maturity Date Jul. 02, 2031   Jul. 02, 2031        
Principal/Share Amount $ 7,962,000            
Investments, amortized cost 7,866,000            
Investments, fair value $ 7,919,000            
Investment, Identifier [Axis]: ABB/Con-cise Optical Group LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:ABBCon-ciseOpticalGroupLLCMember whfcl:ABBCon-ciseOpticalGroupLLCMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Health Care Supplies Health Care Supplies Health Care Supplies Health Care Supplies      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 0.75% 0.75% 0.75% 0.75%      
Spread Above Index 7.50% 7.50% 7.50% 7.50%      
Interest Rate 11.98% 13.01% 11.98% 13.01%      
Acquisition Date Feb. 23, 2022 Feb. 23, 2022          
Maturity Date Feb. 23, 2028 Feb. 23, 2028 Feb. 23, 2028 Feb. 23, 2028      
Principal/Share Amount $ 20,409,000 $ 20,409,000          
Investments, amortized cost 20,142,000 20,056,000          
Investments, fair value $ 19,535,000 $ 18,983,000          
Percent of net assets 6.80% 6.00% 6.80% 6.00%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: ALM Media, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:ALMMediaLLCMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Data Processing & Outsourced Services   Data Processing & Outsourced Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   6.00%   6.00%      
Interest Rate   11.50%   11.50%      
Acquisition Date   Nov. 25, 2019          
Maturity Date   Nov. 25, 2024   Nov. 25, 2024      
Principal/Share Amount   $ 12,600,000          
Investments, amortized cost   12,555,000          
Investments, fair value   $ 12,517,000          
Percent of net assets   4.00%   4.00%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: APG Lions Purchaser, LLC, First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:ApgLionsPurchaserLlcMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Distributors   Distributors        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 5.75%   5.75%        
Interest Rate 10.40%   10.40%        
Acquisition Date Apr. 26, 2024            
Maturity Date Apr. 16, 2030   Apr. 16, 2030        
Investments, fair value $ 15,000            
Investment, Identifier [Axis]: APG Lions Purchaser, LLC, First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:ApgLionsPurchaserLlcMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Distributors   Distributors        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 5.75%   5.75%        
Interest Rate 10.40%   10.40%        
Acquisition Date Apr. 26, 2024            
Maturity Date Apr. 16, 2030   Apr. 16, 2030        
Investments, fair value $ 6,000            
Investment, Identifier [Axis]: APG Lions Purchaser, LLC, First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:ApgLionsPurchaserLlcMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Distributors   Distributors        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 5.75%   5.75%        
Interest Rate 10.40%   10.40%        
Acquisition Date Apr. 26, 2024            
Maturity Date Apr. 16, 2030   Apr. 16, 2030        
Principal/Share Amount $ 4,080,000            
Investments, amortized cost 4,027,000            
Investments, fair value $ 4,070,000            
Investment, Identifier [Axis]: ATSG, First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:ATSGIncMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   IT Consulting And Other Services   IT Consulting And Other Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   6.50%   6.50%      
Interest Rate   12.04%   12.04%      
Acquisition Date   Mar. 27, 2023          
Maturity Date   Nov. 12, 2026   Nov. 12, 2026      
Principal/Share Amount   $ 9,873,000          
Investments, amortized cost   9,678,000          
Investments, fair value   $ 9,771,000          
Investment, Identifier [Axis]: ATSG, Inc. First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:ATSGIncMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   IT Consulting And Other Services   IT Consulting And Other Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   6.50%   6.50%      
Interest Rate   12.04%   12.04%      
Acquisition Date   Nov. 12, 2021          
Maturity Date   Nov. 12, 2026   Nov. 12, 2026      
Principal/Share Amount   $ 3,785,000          
Investments, amortized cost   3,741,000          
Investments, fair value   $ 3,745,000          
Percent of net assets   1.20%   1.20%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Alvaria Holdco (Cayman) (d/b/a Aspect Software, Inc.) First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:AlvariaHoldcoMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Application Software   Application Software        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 0.75%   0.75%        
Spread Above Index 7.50%   7.50%        
Interest Rate 11.96%   11.96%        
Cash interest rate 5.46%   5.46%        
PIK interest rate 6.50%   6.50%        
Acquisition Date Mar. 20, 2024            
Maturity Date May 08, 2028   May 08, 2028        
Principal/Share Amount $ 1,782,000            
Investments, amortized cost 1,615,000            
Investments, fair value $ 1,456,000            
Percent of net assets 0.50%   0.50%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Alvaria Holdco (Cayman) (d/b/a Aspect Software, Inc.) First Lien Secured Term Loan Four              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:AlvariaHoldcoMember            
Investment, Type [Extensible Enumeration] whfcl:SecondLienSecuredTermLoanMember   whfcl:SecondLienSecuredTermLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Application Software   Application Software        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 0.75%   0.75%        
Spread Above Index 7.00%   7.00%        
Interest Rate 11.46%   11.46%        
Acquisition Date Mar. 20, 2024            
Maturity Date May 08, 2028   May 08, 2028        
Principal/Share Amount $ 2,400,000            
Investments, amortized cost 2,330,000            
Investments, fair value $ 74,000            
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Alvaria Holdco (Cayman) (d/b/a Aspect Software, Inc.) First Lien Secured Term Loan Three              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:AlvariaHoldcoMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Application Software   Application Software        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 0.75%   0.75%        
Spread Above Index 7.00%   7.00%        
Interest Rate 11.46%   11.46%        
Acquisition Date Mar. 20, 2024            
Maturity Date May 08, 2028   May 08, 2028        
Principal/Share Amount $ 9,600,000            
Investments, amortized cost 9,318,000            
Investments, fair value $ 3,990,000            
Percent of net assets 1.40%   1.40%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Alvaria Holdco (Cayman) (d/b/a Aspect Software, Inc.) First Lien Secured Term Loan Two              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:AlvariaHoldcoMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Application Software   Application Software        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 0.75%   0.75%        
Spread Above Index 7.50%   7.50%        
Interest Rate 11.96%   11.96%        
Cash interest rate 6.46%   6.46%        
PIK interest rate 5.50%   5.50%        
Acquisition Date Mar. 20, 2024            
Maturity Date May 08, 2028   May 08, 2028        
Principal/Share Amount $ 1,178,000            
Investments, amortized cost 1,029,000            
Investments, fair value $ 451,000            
Percent of net assets 0.20%   0.20%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: American Crafts Holdings, LLC, Warrants              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:AmericanCraftsHoldingsLlcMember whfcl:AmericanCraftsHoldingsLlcMember          
Investment, Type [Extensible Enumeration] Warrant [Member] Warrant [Member] Warrant [Member] Warrant [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Leisure Products Leisure Products Leisure Products Leisure Products      
Acquisition Date Dec. 22, 2022 Dec. 22, 2022          
Maturity Date Dec. 22, 2032 Dec. 22, 2032 Dec. 22, 2032 Dec. 22, 2032      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: American Crafts LC Super Priority First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:AmericanCraftsLCMember whfcl:AmericanCraftsLCMember          
Investment, Type [Extensible Enumeration] whfcl:SuperPriorityFirstLienSecuredTermLoanMember whfcl:SuperPriorityFirstLienSecuredTermLoanMember whfcl:SuperPriorityFirstLienSecuredTermLoanMember whfcl:SuperPriorityFirstLienSecuredTermLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Leisure Products Leisure Products Leisure Products Leisure Products      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 8.50% 8.50% 8.50% 8.50%      
PIK interest rate 12.96% 13.96% 12.96% 13.96%      
Acquisition Date Jul. 25, 2023 Jul. 25, 2023          
Maturity Date May 28, 2026 May 28, 2026 May 28, 2026 May 28, 2026      
Principal/Share Amount $ 2,191,000 $ 1,903,000          
Investments, amortized cost $ 2,094,000 1,903,000          
Investments, fair value   $ 1,878,000          
Percent of net assets   0.60%   0.60%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: American Crafts Lc Super Priority First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:AmericanCraftsLCMember whfcl:AmericanCraftsLCMember          
Investment, Type [Extensible Enumeration] whfcl:SuperPriorityFirstLienSecuredTermLoanMember whfcl:SuperPriorityFirstLienSecuredTermLoanMember whfcl:SuperPriorityFirstLienSecuredTermLoanMember whfcl:SuperPriorityFirstLienSecuredTermLoanMember      
Investments, fair value   $ 1,878,000          
Investment, Identifier [Axis]: American Crafts, LC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:AmericanCraftsLCMember whfcl:AmericanCraftsLCMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Leisure Products Leisure Products Leisure Products Leisure Products      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 8.50% 8.50% 8.50% 8.50%      
PIK interest rate 12.96% 13.96% 12.96% 13.96%      
Acquisition Date Jan. 25, 2022 Jan. 25, 2022          
Maturity Date May 28, 2026 May 28, 2026 May 28, 2026 May 28, 2026      
Principal/Share Amount $ 1,823,000 $ 1,585,000          
Investments, amortized cost $ 1,458,000 1,458,000          
Investments, fair value   $ 93,000          
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: American Crafts, LC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:AmericanCraftsLCMember whfcl:AmericanCraftsLCMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Leisure Products Leisure Products Leisure Products Leisure Products      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 8.50% 8.50% 8.50% 8.50%      
PIK interest rate 12.96% 13.96% 12.96% 13.96%      
Acquisition Date May 28, 2021 May 28, 2021          
Maturity Date May 28, 2026 May 28, 2026 May 28, 2026 May 28, 2026      
Principal/Share Amount $ 10,859,000 $ 9,441,000          
Investments, amortized cost $ 8,720,000 8,720,000          
Investments, fair value   $ 553,000          
Percent of net assets   0.20%   0.20%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: American Crafts, LC Priority First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:AmericanCraftsLCMember whfcl:AmericanCraftsLCMember          
Investment, Type [Extensible Enumeration] whfcl:PriorityFirstLienSecuredTermLoanMember whfcl:PriorityFirstLienSecuredTermLoanMember whfcl:PriorityFirstLienSecuredTermLoanMember whfcl:PriorityFirstLienSecuredTermLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Leisure Products Leisure Products Leisure Products Leisure Products      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 8.50% 8.50% 8.50% 8.50%      
PIK interest rate 12.96% 13.96% 12.96% 13.96%      
Acquisition Date Dec. 22, 2022 Dec. 22, 2022          
Maturity Date May 28, 2026 May 28, 2026 May 28, 2026 May 28, 2026      
Principal/Share Amount $ 5,876,000 $ 5,105,000          
Investments, amortized cost $ 5,105,000 5,105,000          
Investments, fair value   $ 3,226,000          
Percent of net assets   1.00%   1.00%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: American Crafts, LC Super Senior Priority First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Controlled affiliate company investments   Controlled affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:AmericanCraftsLCMember            
Investment, Type [Extensible Enumeration] whfcl:SuperSeniorPriorityFirstLienSecuredTermLoanMember   whfcl:SuperSeniorPriorityFirstLienSecuredTermLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Leisure Products   Leisure Products        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 8.50%   8.50%        
Acquisition Date May 02, 2024            
Maturity Date May 28, 2026   May 28, 2026        
Principal/Share Amount $ 2,485,000            
Investments, amortized cost 2,374,000            
Investments, fair value $ 373,000            
Percent of net assets 0.10%   0.10%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: American Crafts, LC Super Senior Priority First Lien Secured Term Loan One              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Controlled affiliate company investments   Controlled affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:AmericanCraftsLCMember            
Investment, Type [Extensible Enumeration] whfcl:SuperSeniorPriorityFirstLienSecuredTermLoanMember   whfcl:SuperSeniorPriorityFirstLienSecuredTermLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Leisure Products   Leisure Products        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 8.50%   8.50%        
PIK interest rate 12.96%   12.96%        
Acquisition Date Jan. 31, 2024            
Maturity Date May 28, 2026   May 28, 2026        
Principal/Share Amount $ 1,287,000            
Investments, amortized cost $ 1,230,000            
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: American Crafts, LC Super Senior Priority First Lien Secured Term Loan one              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:AmericanCraftsLCMember            
Investment, Type [Extensible Enumeration] whfcl:SuperSeniorPriorityFirstLienSecuredTermLoanMember   whfcl:SuperSeniorPriorityFirstLienSecuredTermLoanMember        
Investment, Identifier [Axis]: Arcole Holding Corporation              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:ArcoleHoldingCorporationMember          
Investment, Identifier [Axis]: Arcole Holding Corporation, Equity              
Schedule of Investments [Line Items]              
Investment, Type [Extensible Enumeration]   Equity Investments   Equity Investments      
Investments, fair value             $ 6,380,000
Investment, Identifier [Axis]: Arcserve Cayman GP LLC (d/b/a Arcserve (USA), LLC) Common Units              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled affiliate company investments   Non-controlled affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:ArcserveCaymanGpLlcMember            
Investment, Type [Extensible Enumeration] whfcl:CommonUnitsMember   whfcl:CommonUnitsMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Systems Software   Systems Software        
Acquisition Date Jan. 03, 2024            
Investment owned shares | shares 663   663        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Arcserve Cayman GP LLC (d/b/a Arcserve (USA), LLC) Common Units One              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:ArcserveCaymanGpLlcMember            
Investment, Type [Extensible Enumeration] whfcl:CommonUnitsMember   whfcl:CommonUnitsMember        
Investment, Identifier [Axis]: Arcserve Cayman Opco LP (d/b/a Arcserve (USA), LLC) First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled affiliate company investments   Non-controlled affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:ArcserveCaymanOpcoLpMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Systems Software   Systems Software        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 8.00%   8.00%        
PIK interest rate 12.67%   12.67%        
Acquisition Date Jan. 03, 2024            
Maturity Date Jan. 04, 2027   Jan. 04, 2027        
Principal/Share Amount $ 689,000            
Investments, amortized cost 677,000            
Investments, fair value $ 1,247,000            
Percent of net assets 0.40%   0.40%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Arcserve Cayman Opco LP (d/b/a Arcserve (USA), LLC) Unsecured Loan One              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled affiliate company investments   Non-controlled affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:ArcserveCaymanOpcoLpMember            
Investment, Type [Extensible Enumeration] whfcl:UnsecuredLoanMember   whfcl:UnsecuredLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Systems Software   Systems Software        
Interest Rate 9.00%   9.00%        
PIK interest rate 9.00%   9.00%        
Acquisition Date Jan. 03, 2024            
Maturity Date Jul. 02, 2029   Jul. 02, 2029        
Principal/Share Amount $ 581,000            
Investments, amortized cost 569,000            
Investments, fair value $ 581,000            
Percent of net assets 0.20%   0.20%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Arcserve Cayman Opco LP (d/b/a Arcserve (USA), LLC) Unsecured Loan Two              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled affiliate company investments   Non-controlled affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:ArcserveCaymanOpcoLpMember            
Investment, Type [Extensible Enumeration] whfcl:UnsecuredLoanMember   whfcl:UnsecuredLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Systems Software   Systems Software        
Interest Rate 9.00%   9.00%        
Acquisition Date Jan. 03, 2024            
Maturity Date Jul. 02, 2029   Jul. 02, 2029        
Principal/Share Amount $ 594,000            
Investments, amortized cost 583,000            
Investments, fair value $ 594,000            
Percent of net assets 0.20%   0.20%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Arcserve Cayman Topco LP (d/b/a Arcserve (USA), LLC) Common Units              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled affiliate company investments   Non-controlled affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:ArcserveCaymanTopcoLpMember            
Investment, Type [Extensible Enumeration] whfcl:CommonUnitsMember   whfcl:CommonUnitsMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Systems Software   Systems Software        
Acquisition Date Jan. 03, 2024            
Investment owned shares | shares 663   663        
Investments, amortized cost $ 19,568,000            
Investments, fair value $ 9,131,000            
Percent of net assets 3.20%   3.20%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Arcserve Cayman Topco LP (d/b/a Arcserve (USA), LLC) Common Units Two              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:ArcserveCaymanTopcoLpMember            
Investment, Type [Extensible Enumeration] whfcl:CommonUnitsMember   whfcl:CommonUnitsMember        
Investments, fair value $ 9,131,000            
Investment, Identifier [Axis]: Arcstor Midco, LLC (d/b/a Arcserve (USA), LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:ArcstorMidcoLLCMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Systems Software   Systems Software      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   7.75%   7.75%      
PIK interest rate   13.21%   13.21%      
Acquisition Date   Mar. 16, 2021          
Maturity Date   Mar. 16, 2027   Mar. 16, 2027      
Principal/Share Amount   $ 21,613,000          
Investments, amortized cost   19,568,000          
Investments, fair value   $ 10,477,000          
Percent of net assets   3.30%   3.30%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Arcstor Midco, LLC (d/b/a Arcserve (USA), LLC Priority First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:ArcstorMidcoLLCMember          
Investment, Type [Extensible Enumeration]   whfcl:PriorityFirstLienSecuredDelayedDrawLoanMember   whfcl:PriorityFirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Systems Software   Systems Software      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Spread Above Index   8.00%   8.00%      
PIK interest rate   13.46%   13.46%      
Acquisition Date   Jul. 14, 2023          
Maturity Date   Mar. 16, 2027   Mar. 16, 2027      
Principal/Share Amount   $ 1,078,000          
Investments, amortized cost   1,050,000          
Investments, fair value   $ 1,046,000          
Percent of net assets   0.30%   0.30%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Arteriocyte Medical Systems, Inc. First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:ArteriocyteMedicalSystemsInc.Member whfcl:ArteriocyteMedicalSystemsInc.Member          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Health Care Supplies Health Care Supplies Health Care Supplies Health Care Supplies      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 5.00% 6.25% 5.00% 6.25%      
Interest Rate 9.33% 11.60% 9.33% 11.60%      
Acquisition Date Oct. 25, 2023 Oct. 25, 2023          
Maturity Date Oct. 18, 2028 Oct. 18, 2028 Oct. 18, 2028 Oct. 18, 2028      
Investments, fair value $ 9,000            
Investment, Identifier [Axis]: Arteriocyte Medical Systems, Inc. First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:ArteriocyteMedicalSystemsInc.Member whfcl:ArteriocyteMedicalSystemsInc.Member          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Health Care Supplies Health Care Supplies Health Care Supplies Health Care Supplies      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 5.00% 6.25% 5.00% 6.25%      
Interest Rate 9.33% 11.60% 9.33% 11.60%      
Acquisition Date Oct. 25, 2023 Oct. 25, 2023          
Maturity Date Oct. 18, 2028 Oct. 18, 2028 Oct. 18, 2028 Oct. 18, 2028      
Principal/Share Amount $ 4,972,000 $ 5,022,000          
Investments, amortized cost 4,877,000 4,901,000          
Investments, fair value $ 5,021,000 $ 4,901,000          
Investment, Identifier [Axis]: Atlas Purchaser, Inc First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:AtlasPurchaserIncMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Application Software   Application Software      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   0.75%   0.75%      
Spread Above Index   5.25%   5.25%      
Interest Rate   10.88%   10.88%      
Acquisition Date   Aug. 29, 2022          
Maturity Date   May 08, 2028   May 08, 2028      
Principal/Share Amount   $ 3,066,000          
Investments, amortized cost   2,675,000          
Investments, fair value   $ 2,269,000          
Percent of net assets   0.70%   0.70%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Atlas Purchaser, Inc Second Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:AtlasPurchaserIncMember          
Investment, Type [Extensible Enumeration]   whfcl:SecondLienSecuredTermLoanMember   whfcl:SecondLienSecuredTermLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Application Software   Application Software      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   0.75%   0.75%      
Spread Above Index   9.00%   9.00%      
Interest Rate   14.64%   14.64%      
Acquisition Date   May 03, 2021          
Maturity Date   May 07, 2029   May 07, 2029      
Principal/Share Amount   $ 15,000,000          
Investments, amortized cost   14,699,000          
Investments, fair value   $ 9,744,000          
Percent of net assets   3.10%   3.10%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Avision Holdings, LLC (d/b/a Avision Sales Group) First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] Avision Holdings, LLC [Member]            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Advertising   Advertising        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 6.00%   6.00%        
Interest Rate 10.48%   10.48%        
Acquisition Date May 31, 2024            
Maturity Date Dec. 15, 2026   Dec. 15, 2026        
Principal/Share Amount $ 553,000            
Investments, amortized cost 545,000            
Investments, fair value $ 558,000            
Percent of net assets 0.20%   0.20%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Avision Holdings, LLC (d/b/a Avision Sales Group) First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] Avision Holdings, LLC [Member]            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Advertising   Advertising        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 6.00%   6.00%        
Interest Rate 10.48%   10.48%        
Acquisition Date May 31, 2024            
Maturity Date Dec. 15, 2026   Dec. 15, 2026        
Principal/Share Amount $ 658,000            
Investments, amortized cost 648,000            
Investments, fair value $ 652,000            
Percent of net assets 0.20%   0.20%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Avision Holdings, LLC Class A LLC Interests              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] Avision Holdings, LLC [Member] Avision Holdings, LLC [Member]          
Investment, Type [Extensible Enumeration] whfcl:ClassALLCInterestsMember whfcl:ClassALLCInterestsMember whfcl:ClassALLCInterestsMember whfcl:ClassALLCInterestsMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Advertising Advertising Advertising Advertising      
Acquisition Date Dec. 15, 2021 Dec. 15, 2021          
Investment owned shares | shares 200 200 200 200      
Investments, amortized cost $ 287,000 $ 287,000          
Investments, fair value $ 577,000 $ 411,000          
Percent of net assets 0.20% 0.10% 0.20% 0.10%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: BBQ Buyer, LLC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:BBQBuyerLLCMember whfcl:BBQBuyerLLCMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Household Appliances Household Appliances Household Appliances Household Appliances      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.50% 1.50% 1.50% 1.50%      
Spread Above Index 10.50% 9.50% 10.50% 9.50%      
Interest Rate 14.96% 14.96% 14.96% 14.96%      
Cash interest rate 12.96% 13.96% 12.96% 13.96%      
PIK interest rate 2.00% 1.00% 2.00% 1.00%      
Acquisition Date Dec. 02, 2021 Dec. 02, 2021          
Maturity Date Aug. 28, 2025 Aug. 28, 2025 Aug. 28, 2025 Aug. 28, 2025      
Principal/Share Amount $ 2,654,000 $ 2,628,000          
Investments, amortized cost 2,645,000 2,606,000          
Investments, fair value $ 2,642,000 $ 2,613,000          
Percent of net assets 0.90% 0.80% 0.90% 0.80%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: BBQ Buyer, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:BBQBuyerLLCMember whfcl:BBQBuyerLLCMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Household Appliances Household Appliances Household Appliances Household Appliances      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.50% 1.50% 1.50% 1.50%      
Spread Above Index 10.50% 9.50% 10.50% 9.50%      
Interest Rate 14.96% 14.96% 14.96% 14.96%      
Cash interest rate 12.96% 13.96% 12.96% 13.96%      
PIK interest rate 2.00% 1.00% 2.00% 1.00%      
Acquisition Date Aug. 28, 2020 Aug. 28, 2020          
Maturity Date Aug. 28, 2025 Aug. 28, 2025 Aug. 28, 2025 Aug. 28, 2025      
Principal/Share Amount $ 13,013,000 $ 12,891,000          
Investments, amortized cost 12,972,000 12,787,000          
Investments, fair value $ 12,955,000 $ 12,818,000          
Percent of net assets 4.50% 4.10% 4.50% 4.10%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: BBQ Buyer, LLC Shares              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:BBQBuyerLLCMember whfcl:BBQBuyerLLCMember          
Investment, Type [Extensible Enumeration] Common Stock [Member] Common Stock [Member] Common Stock [Member] Common Stock [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Household Appliances Household Appliances Household Appliances Household Appliances      
Acquisition Date Aug. 28, 2020 Aug. 28, 2020          
Investment owned shares | shares 1,100 1,100 1,100 1,100      
Investments, amortized cost $ 1,100,000 $ 1,100,000          
Investments, fair value $ 907,000 $ 1,330,000          
Percent of net assets 0.30% 0.40% 0.30% 0.40%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: BL Products Parent, LP Class A Units              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:BLProductsParentLPMember whfcl:BLProductsParentLPMember          
Investment, Type [Extensible Enumeration] whfcl:ClassAUnitsMember whfcl:ClassAUnitsMember whfcl:ClassAUnitsMember whfcl:ClassAUnitsMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Industrial Machinery & Supplies & Components Industrial Machinery & Supplies & Components Industrial Machinery & Supplies & Components Industrial Machinery & Supplies & Components      
Acquisition Date Feb. 01, 2022 Feb. 01, 2022          
Investment owned shares | shares 733 733 733 733      
Investments, amortized cost $ 788,000 $ 788,000          
Investments, fair value $ 1,012,000 $ 1,053,000          
Percent of net assets 0.40% 0.30% 0.40% 0.30%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: BPII-JL Group Holdings LP Class A Units              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:BPII-JLGroupHoldingsLPMember whfcl:BPII-JLGroupHoldingsLPMember          
Investment, Type [Extensible Enumeration] whfcl:ClassAUnitsMember whfcl:ClassAUnitsMember whfcl:ClassAUnitsMember whfcl:ClassAUnitsMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services      
Acquisition Date Dec. 29, 2021 Dec. 29, 2021          
Investment owned shares | shares 90 83 90 83      
Investments, amortized cost $ 942,000 $ 825,000          
Investments, fair value $ 1,400,000 $ 983,000          
Percent of net assets 0.50% 0.30% 0.50% 0.30%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: BUSA Acquisition Co. (d/b/a BankCard USA Merchant Services Inc.) First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] Busa Acquisition Co BankCard Usa Merchant Services Inc [Member]            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Data Processing & Outsourced Services   Data Processing & Outsourced Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 6.50%   6.50%        
Interest Rate 10.81%   10.81%        
Acquisition Date Apr. 04, 2024            
Maturity Date Mar. 30, 2029   Mar. 30, 2029        
Principal/Share Amount $ 459,000            
Investments, amortized cost 447,000            
Investments, fair value $ 461,000            
Percent of net assets 0.20%   0.20%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: BUSA Acquisition Co. (d/b/a BankCard USA Merchant Services Inc.) First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] Busa Acquisition Co BankCard Usa Merchant Services Inc [Member]            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Data Processing & Outsourced Services   Data Processing & Outsourced Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 6.50%   6.50%        
Interest Rate 10.77%   10.77%        
Acquisition Date Apr. 04, 2024            
Maturity Date Mar. 30, 2029   Mar. 30, 2029        
Principal/Share Amount $ 7,779,000            
Investments, amortized cost 7,580,000            
Investments, fair value $ 7,691,000            
Percent of net assets 2.70%   2.70%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Banner Acquisition Holdings, LLC (d/b/a Banner Industries, Inc) First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:BannerIndustriesIncMember          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Construction & Engineering   Construction & Engineering      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   6.00%   6.00%      
Interest Rate   11.38%   11.38%      
Acquisition Date   Dec. 01, 2023          
Maturity Date   Jan. 02, 2029   Jan. 02, 2029      
Principal/Share Amount   $ 140,000          
Investments, amortized cost   137,000          
Investments, fair value   $ 137,000          
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Banner Acquisition Holdings, LLC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] Banner Acquisition Holdings, LLC [Member] Banner Acquisition Holdings, LLC [Member]          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Construction & Engineering Construction & Engineering Construction & Engineering Construction & Engineering      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.25% 6.00% 6.25% 6.00%      
Interest Rate 10.59% 11.38% 10.59% 11.38%      
Acquisition Date Dec. 21, 2023 Dec. 21, 2023          
Maturity Date Jan. 02, 2029 Jan. 02, 2029 Jan. 02, 2029 Jan. 02, 2029      
Principal/Share Amount $ 1,502,000 $ 1,400,000          
Investments, amortized cost 1,472,000 1,366,000          
Investments, fair value $ 1,477,000 $ 1,365,000          
Investment, Identifier [Axis]: Banner Acquisition Holdings, LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] Banner Acquisition Holdings, LLC [Member] Banner Acquisition Holdings, LLC [Member]          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Construction & Engineering Construction & Engineering Construction & Engineering Construction & Engineering      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.25% 6.00% 6.25% 6.00%      
Interest Rate 10.61% 11.37% 10.61% 11.37%      
Acquisition Date Dec. 21, 2023 Dec. 21, 2023          
Maturity Date Jan. 02, 2029 Jan. 02, 2029 Jan. 02, 2029 Jan. 02, 2029      
Principal/Share Amount $ 420,000 $ 196,000          
Investments, amortized cost 412,000 191,000          
Investments, fair value $ 415,000 $ 191,000          
Investment, Identifier [Axis]: Banner Acquisition Holdings, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] Banner Acquisition Holdings, LLC [Member] Banner Acquisition Holdings, LLC [Member]          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Construction & Engineering Construction & Engineering Construction & Engineering Construction & Engineering      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.25% 6.00% 6.25% 6.00%      
Interest Rate 10.61% 11.38% 10.61% 11.38%      
Acquisition Date Dec. 21, 2023 Dec. 21, 2023          
Maturity Date Jan. 02, 2029 Jan. 02, 2029 Jan. 02, 2029 Jan. 02, 2029      
Principal/Share Amount $ 3,033,000 $ 3,091,000          
Investments, amortized cost 2,974,000 3,015,000          
Investments, fair value $ 2,981,000 $ 3,015,000          
Investment, Identifier [Axis]: Barrett Purchaser LLC (d/b/a SIB Development and Consulting, Inc.) First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] Barrett Purchaser LLC [Member] Barrett Purchaser LLC [Member]          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Research & Consulting Services Research & Consulting Services Research & Consulting Services Research & Consulting Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] whfcl:SecuredOvernightFinancingRateSofrMember Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 0.75% 0.75% 0.75% 0.75%      
Spread Above Index 6.00% 6.00% 6.00% 6.00%      
Interest Rate 10.51% 11.36% 10.51% 11.36%      
Acquisition Date Jan. 10, 2024 Nov. 21, 2023          
Maturity Date Nov. 21, 2029 Nov. 21, 2029 Nov. 21, 2029 Nov. 21, 2029      
Investments, fair value $ (2,000)            
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Barrett Purchaser LLC (d/b/a SIB Development and Consulting, Inc.) First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] Barrett Purchaser LLC [Member] Barrett Purchaser LLC [Member]          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Research & Consulting Services Research & Consulting Services Research & Consulting Services Research & Consulting Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] us-gaap:PrimeRateMember whfcl:SecuredOvernightFinancingRateSofrMember us-gaap:PrimeRateMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 0.75% 0.75% 0.75% 0.75%      
Spread Above Index 5.00% 6.00% 5.00% 6.00%      
Interest Rate 12.50% 11.36% 12.50% 11.36%      
Acquisition Date Jan. 10, 2024 Nov. 21, 2023          
Maturity Date Nov. 21, 2028 Nov. 21, 2028 Nov. 21, 2028 Nov. 21, 2028      
Principal/Share Amount $ 60,000            
Investments, amortized cost 58,000            
Investments, fair value $ 63,000            
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Barrett Purchaser LLC (d/b/a SIB Development and Consulting, Inc.) First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] Barrett Purchaser LLC [Member] Barrett Purchaser LLC [Member]          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Research & Consulting Services Research & Consulting Services Research & Consulting Services Research & Consulting Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] whfcl:SecuredOvernightFinancingRateSofrMember Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 0.75% 0.75% 0.75% 0.75%      
Spread Above Index 6.00% 6.00% 6.00% 6.00%      
Interest Rate 10.51% 11.36% 10.51% 11.36%      
Acquisition Date Jan. 10, 2024 Nov. 21, 2023          
Maturity Date Nov. 21, 2029 Nov. 21, 2029 Nov. 21, 2029 Nov. 21, 2029      
Principal/Share Amount $ 3,617,000 $ 3,654,000          
Investments, amortized cost 3,543,000 3,564,000          
Investments, fair value $ 3,574,000 $ 3,564,000          
Percent of net assets   1.10%   1.10%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Basel U.S. Acquisition Co., Inc. First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:BaselU.s.AcquisitionCo.Inc.Member            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Aerospace Sector [Member]   Aerospace Sector [Member]        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 5.50%   5.50%        
Interest Rate 9.94%   9.94%        
Acquisition Date Sep. 13, 2024            
Maturity Date Dec. 05, 2028   Dec. 05, 2028        
Investments, fair value $ 7,000            
Investment, Identifier [Axis]: Basel U.S. Acquisition Co., Inc. First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:BaselU.s.AcquisitionCo.Inc.Member            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Aerospace Sector [Member]   Aerospace Sector [Member]        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 5.50%   5.50%        
Interest Rate 9.94%   9.94%        
Acquisition Date Sep. 13, 2024            
Maturity Date Dec. 05, 2028   Dec. 05, 2028        
Principal/Share Amount $ 3,681,000            
Investments, amortized cost 3,633,000            
Investments, fair value $ 3,675,000            
Investment, Identifier [Axis]: Branford Filtration, LLC (d/b/a Clean Solutions Group) First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   Branford Filtration, LLC [Member]          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Environmental & Facilities Services   Environmental & Facilities Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   6.50%   6.50%      
Interest Rate   11.96%   11.96%      
Acquisition Date   Nov. 17, 2023          
Maturity Date   Nov. 17, 2028   Nov. 17, 2028      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Branford Filtration, LLC (d/b/a Clean Solutions Group) First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   Branford Filtration, LLC [Member]          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Environmental & Facilities Services   Environmental & Facilities Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   6.50%   6.50%      
Interest Rate   11.96%   11.96%      
Acquisition Date   Nov. 17, 2023          
Maturity Date   Nov. 17, 2028   Nov. 17, 2028      
Principal/Share Amount   $ 11,613,000          
Investments, amortized cost   11,358,000          
Investments, fair value   $ 11,358,000          
Percent of net assets   3.60%   3.60%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Bridgepoint Healthcare, LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:BridgepointHealthcareLLCMember whfcl:BridgepointHealthcareLLCMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Health Care Facilities Health Care Facilities Health Care Facilities Health Care Facilities      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 8.00% 8.00% 8.00% 8.00%      
Interest Rate 12.46% 13.46% 12.46% 13.46%      
Acquisition Date Oct. 05, 2021 Oct. 05, 2021          
Maturity Date Oct. 05, 2026 Oct. 05, 2026 Oct. 05, 2026 Oct. 05, 2026      
Principal/Share Amount $ 238,000            
Investments, amortized cost 237,000            
Investments, fair value $ 231,000 $ (1,000)          
Percent of net assets 0.10%   0.10%        
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Bridgepoint Healthcare, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:BridgepointHealthcareLLCMember whfcl:BridgepointHealthcareLLCMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Health Care Facilities Health Care Facilities Health Care Facilities Health Care Facilities      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 8.00% 8.00% 8.00% 8.00%      
Interest Rate 12.46% 13.46% 12.46% 13.46%      
Acquisition Date Oct. 05, 2021 Oct. 05, 2021          
Maturity Date Oct. 05, 2026 Oct. 05, 2026 Oct. 05, 2026 Oct. 05, 2026      
Principal/Share Amount $ 8,517,000 $ 9,073,000          
Investments, amortized cost 8,457,000 8,973,000          
Investments, fair value $ 8,429,000 $ 8,967,000          
Percent of net assets 2.90% 2.80% 2.90% 2.80%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Buckeye Acquiror LLC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:BuckeyeAcquirorLlcMember whfcl:BuckeyeAcquirorLlcMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 5.00% 6.50% 5.00% 6.50%      
Interest Rate 8.45% 11.96% 8.45% 11.96%      
Acquisition Date Aug. 09, 2023 Aug. 09, 2023          
Maturity Date Aug. 01, 2029 Aug. 01, 2029 Aug. 01, 2029 Aug. 01, 2029      
Principal/Share Amount $ 2,168,000            
Investments, amortized cost 2,120,000            
Investments, fair value $ 2,183,000 $ (3,000)          
Investment, Identifier [Axis]: Buckeye Acquiror LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:BuckeyeAcquirorLlcMember whfcl:BuckeyeAcquirorLlcMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.50% 6.50% 6.50% 6.50%      
Interest Rate 10.96% 11.96% 10.96% 11.96%      
Acquisition Date Aug. 09, 2023 Aug. 09, 2023          
Maturity Date Aug. 01, 2029 Aug. 01, 2029 Aug. 01, 2029 Aug. 01, 2029      
Principal/Share Amount $ 234,000 $ 180,000          
Investments, amortized cost 230,000 176,000          
Investments, fair value $ 248,000 $ 181,000          
Investment, Identifier [Axis]: Buckeye Acquiror LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:BuckeyeAcquirorLlcMember whfcl:BuckeyeAcquirorLlcMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.42% 6.50% 6.42% 6.50%      
Interest Rate 10.88% 11.96% 10.88% 11.96%      
Acquisition Date Aug. 09, 2023 Aug. 09, 2023          
Maturity Date Aug. 01, 2029 Aug. 01, 2029 Aug. 01, 2029 Aug. 01, 2029      
Principal/Share Amount $ 6,904,000 $ 5,985,000          
Investments, amortized cost 6,774,000 5,845,000          
Investments, fair value $ 6,952,000 $ 5,898,000          
Investment, Identifier [Axis]: Bulk Midco, LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:BulkMidcoLLCMember          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Wireless Telecommunication Services   Wireless Telecommunication Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   7.50%   7.50%      
Interest Rate   12.96%   12.96%      
Cash interest rate   11.96%   11.96%      
PIK interest rate   1.00%   1.00%      
Acquisition Date   Oct. 28, 2022          
Maturity Date   Jun. 10, 2024   Jun. 10, 2024      
Principal/Share Amount   $ 2,000,000          
Investments, amortized cost   1,989,000          
Investments, fair value   $ 1,972,000          
Percent of net assets   0.60%   0.60%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Bulk Midco, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:BulkMidcoLLCMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Wireless Telecommunication Services   Wireless Telecommunication Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   7.50%   7.50%      
Interest Rate   12.96%   12.96%      
Cash interest rate   11.96%   11.96%      
PIK interest rate   1.00%   1.00%      
Acquisition Date   Oct. 28, 2022          
Maturity Date   Jun. 10, 2024   Jun. 10, 2024      
Principal/Share Amount   $ 19,267,000          
Investments, amortized cost   19,237,000          
Investments, fair value   $ 18,997,000          
Percent of net assets   6.00%   6.00%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: CX Holdco LLC Common Units              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:CXHoldcoLLCMember whfcl:CXHoldcoLLCMember          
Investment, Type [Extensible Enumeration] whfcl:CommonUnitsMember whfcl:CommonUnitsMember whfcl:CommonUnitsMember whfcl:CommonUnitsMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services      
Acquisition Date May 04, 2021 May 04, 2021          
Investment owned shares | shares 1,068 1,068 1,068 1,068      
Investments, amortized cost $ 1,116,000 $ 1,116,000          
Investments, fair value $ 2,232,000 $ 1,715,000          
Percent of net assets 0.80% 0.50% 0.80% 0.50%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Camarillo Fitness Holdings, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled affiliate company investments   Non-controlled affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:CamarilloFitnessHoldingsLlcMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Leisure Facilities   Leisure Facilities        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 8.50%   8.50%        
PIK interest rate 12.98%   12.98%        
Acquisition Date Sep. 25, 2024            
Maturity Date Sep. 25, 2029   Sep. 25, 2029        
Principal/Share Amount $ 11,738,000            
Investments, amortized cost 10,269,000            
Investments, fair value $ 10,492,000            
Percent of net assets 3.70%   3.70%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Camp Facility Services Holdings, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:CampFacilityServicesHoldingsLLCMember whfcl:CampFacilityServicesHoldingsLLCMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Real Estate Services [Member] Real Estate Services [Member] Real Estate Services [Member] Real Estate Services [Member]      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.50% 6.50% 6.50% 6.50%      
Interest Rate 10.96% 11.96% 10.96% 11.96%      
Acquisition Date Nov. 16, 2021 Nov. 16, 2021          
Maturity Date Nov. 16, 2027 Nov. 16, 2027 Nov. 16, 2027 Nov. 16, 2027      
Principal/Share Amount $ 10,424,000 $ 11,668,000          
Investments, amortized cost 10,325,000 11,517,000          
Investments, fair value $ 9,905,000 $ 11,496,000          
Percent of net assets 3.50% 3.60% 3.50% 3.60%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Camp Facility Services Parent, LLC Preferred Units              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:CampFacilityServicesParentLLCMember whfcl:CampFacilityServicesParentLLCMember          
Investment, Type [Extensible Enumeration] Preferred Units [Member] Preferred Units [Member] Preferred Units [Member] Preferred Units [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Real Estate Services [Member] Real Estate Services [Member] Real Estate Services [Member] Real Estate Services [Member]      
Interest Rate 10.00% 10.00% 10.00% 10.00%      
PIK interest rate 10.00% 10.00% 10.00% 10.00%      
Acquisition Date Nov. 16, 2021 Nov. 16, 2021          
Investment owned shares | shares 15 15 15 15      
Investments, amortized cost $ 840,000 $ 840,000          
Investments, fair value $ 162,000 $ 1,023,000          
Percent of net assets 0.10% 0.30% 0.10% 0.30%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] true true true true      
Investment, Identifier [Axis]: Cennox Holdings Limited, First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:CennoxHoldingsLimitedMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services   IT Consulting And Other Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Sterling Overnight Index Average [Member]   Sterling Overnight Index Average [Member]        
Floor 1.00%   1.00%        
Spread Above Index 5.50%   5.50%        
Interest Rate 10.40%   10.40%        
Acquisition Date Sep. 11, 2024            
Maturity Date May 04, 2029   May 04, 2029        
Investments, fair value $ 2,000            
Investment, Identifier [Axis]: Cennox Holdings Limited, First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:CennoxHoldingsLimitedMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services   IT Consulting And Other Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Sterling Overnight Index Average [Member]   Sterling Overnight Index Average [Member]        
Floor 1.00%   1.00%        
Spread Above Index 5.50%   5.50%        
Interest Rate 10.40%   10.40%        
Acquisition Date Sep. 11, 2024            
Maturity Date May 04, 2029   May 04, 2029        
Principal/Share Amount $ 513,000            
Investments, amortized cost 665,000            
Investments, fair value $ 643,000            
Investment, Identifier [Axis]: Cennox Holdings Limited, First lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:CennoxHoldingsLimitedMember          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   IT Consulting And Other Services   IT Consulting And Other Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Sterling Overnight Index Average [Member]   Sterling Overnight Index Average [Member]      
Floor   1.00%   1.00%      
Spread Above Index   6.25%   6.25%      
Interest Rate   11.56%   11.56%      
Cash interest rate   11.31%   11.31%      
PIK interest rate   0.25%   0.25%      
Acquisition Date   Jul. 16, 2021          
Maturity Date   May 04, 2026   May 04, 2026      
Principal/Share Amount   $ 864,000          
Investments, amortized cost   1,182,000          
Investments, fair value   $ 1,082,000          
Investment, Identifier [Axis]: Cennox Holdings Limited., First lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:CennoxHoldingsLimitedMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   IT Consulting And Other Services   IT Consulting And Other Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Sterling Overnight Index Average [Member]   Sterling Overnight Index Average [Member]      
Floor   1.00%   1.00%      
Spread Above Index   6.25%   6.25%      
Acquisition Date   Jul. 16, 2021          
Maturity Date   May 04, 2026   May 04, 2026      
Principal/Share Amount   $ 2,825,000          
Investments, amortized cost   3,863,000          
Investments, fair value   $ 3,538,000          
Investment, Identifier [Axis]: Cennox, Inc, First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:CennoxInc.Member            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services   IT Consulting And Other Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 5.50%   5.50%        
Interest Rate 10.25%   10.25%        
Acquisition Date Sep. 11, 2024            
Maturity Date May 04, 2029   May 04, 2029        
Principal/Share Amount $ 29,000            
Investments, amortized cost 29,000            
Investments, fair value $ 30,000            
Investment, Identifier [Axis]: Cennox, Inc, First Lien Secured Term Loan One              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:CennoxInc.Member            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services   IT Consulting And Other Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:EuroInterbankOfferedRateMember   whfcl:EuroInterbankOfferedRateMember        
Floor 1.00%   1.00%        
Spread Above Index 5.75%   5.75%        
Interest Rate 9.14%   9.14%        
Acquisition Date Sep. 11, 2024            
Maturity Date May 04, 2029   May 04, 2029        
Principal/Share Amount $ 594,000            
Investments, amortized cost 649,000            
Investments, fair value $ 611,000            
Investment, Identifier [Axis]: Cennox, Inc, First lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:CennoxInc.Member          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   IT Consulting And Other Services   IT Consulting And Other Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:EuroInterbankOfferedRateMember   whfcl:EuroInterbankOfferedRateMember      
Floor   1.00%   1.00%      
Spread Above Index   6.50%   6.50%      
Interest Rate   10.44%   10.44%      
Cash interest rate   10.19%   10.19%      
PIK interest rate   0.25%   0.25%      
Acquisition Date   Jun. 28, 2022          
Maturity Date   May 04, 2026   May 04, 2026      
Principal/Share Amount   $ 9,422,000          
Investments, amortized cost   9,851,000          
Investments, fair value   $ 10,257,000          
Investment, Identifier [Axis]: Cennox, Inc. First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:CennoxInc.Member            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services   IT Consulting And Other Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 5.50%   5.50%        
Interest Rate 10.34%   10.34%        
Acquisition Date Sep. 11, 2024            
Maturity Date May 04, 2029   May 04, 2029        
Principal/Share Amount $ 3,350,000            
Investments, amortized cost 3,319,000            
Investments, fair value $ 3,344,000            
Investment, Identifier [Axis]: Chase Products Co. (f/k/a Starco) Second Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled affiliate company investments Non-controlled affiliate company investments Non-controlled affiliate company investments Non-controlled affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:ChaseProductsCoMember whfcl:ChaseProductsCoMember          
Investment, Type [Extensible Enumeration] whfcl:SecondLienSecuredTermLoanMember whfcl:SecondLienSecuredTermLoanMember whfcl:SecondLienSecuredTermLoanMember whfcl:SecondLienSecuredTermLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Diversified Chemicals Diversified Chemicals Diversified Chemicals Diversified Chemicals      
Interest Rate 12.00% 12.00% 12.00% 12.00%      
PIK interest rate 12.00% 12.00% 12.00% 12.00%      
Acquisition Date Mar. 16, 2023 Mar. 16, 2023          
Maturity Date Mar. 16, 2028 Mar. 16, 2028 Mar. 16, 2028 Mar. 16, 2028      
Principal/Share Amount $ 3,342,000 $ 2,962,000          
Investments, amortized cost 3,342,000 2,962,000          
Investments, fair value $ 3,342,000 $ 2,793,000          
Percent of net assets 1.20% 0.90% 1.20% 0.90%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Claridge Products and Equipment, LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:ClaridgeProductsandEquipmentLLCMember whfcl:ClaridgeProductsandEquipmentLLCMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Construction Materials Construction Materials Construction Materials Construction Materials      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Base Rate [Member] Base Rate [Member] Base Rate [Member] Base Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 8.31% 7.56% 8.31% 7.56%      
Interest Rate 14.13% 14.41% 14.13% 14.41%      
Cash interest rate 11.88% 12.91% 11.88% 12.91%      
PIK interest rate 2.25% 1.50% 2.25% 1.50%      
Acquisition Date Dec. 30, 2020 Dec. 30, 2020          
Maturity Date Dec. 30, 2025 Dec. 30, 2025 Dec. 30, 2025 Dec. 30, 2025      
Principal/Share Amount $ 632,000 $ 632,000          
Investments, amortized cost 630,000 628,000          
Investments, fair value $ 555,000 $ 496,000          
Percent of net assets 0.20% 0.20% 0.20% 0.20%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Claridge Products and Equipment, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:ClaridgeProductsandEquipmentLLCMember whfcl:ClaridgeProductsandEquipmentLLCMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Construction Materials Construction Materials Construction Materials Construction Materials      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 8.75% 8.00% 8.75% 8.00%      
Interest Rate 13.21% 13.50% 13.21% 13.50%      
Cash interest rate 10.96% 12.00% 10.96% 12.00%      
PIK interest rate 2.25% 1.50% 2.25% 1.50%      
Acquisition Date Dec. 30, 2020 Dec. 30, 2020          
Maturity Date Dec. 30, 2025 Dec. 30, 2025 Dec. 30, 2025 Dec. 30, 2025      
Principal/Share Amount $ 5,711,000 $ 7,452,000          
Investments, amortized cost 5,690,000 7,395,000          
Investments, fair value $ 5,085,000 $ 6,405,000          
Percent of net assets 1.80% 2.00% 1.80% 2.00%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Clark Restaurant Service, LLC, First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:ClarkRestaurantServiceLlcMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Food Distributors   Food Distributors        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 5.75%   5.75%        
Interest Rate 10.11%   10.11%        
Acquisition Date Jun. 14, 2024            
Maturity Date May 10, 2029   May 10, 2029        
Principal/Share Amount $ 5,006,000            
Investments, amortized cost 4,919,000            
Investments, fair value $ 4,993,000            
Investment, Identifier [Axis]: CleanChoice Energy, Inc First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:CleanChoiceEnergyIncMember whfcl:CleanChoiceEnergyIncMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Electric Utilities Electric Utilities Electric Utilities Electric Utilities      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 7.59% 7.58% 7.59% 7.58%      
Interest Rate 12.39% 13.14% 12.39% 13.14%      
Acquisition Date Oct. 12, 2021 Oct. 12, 2021          
Maturity Date Oct. 12, 2026 Oct. 12, 2026 Oct. 12, 2026 Oct. 12, 2026      
Principal/Share Amount $ 15,955,000 $ 15,955,000          
Investments, amortized cost 15,802,000 15,715,000          
Investments, fair value $ 16,032,000 $ 15,954,000          
Percent of net assets 5.60% 5.00% 5.60% 5.00%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Coastal Television Broadcasting Group LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:CoastalTelevisionBroadcastingGroupLLCMember whfcl:CoastalTelevisionBroadcastingGroupLLCMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Broadcasting Broadcasting Broadcasting Broadcasting      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.50% 7.00% 6.50% 7.00%      
Interest Rate 10.96% 12.46% 10.96% 12.46%      
Acquisition Date Dec. 30, 2021 Dec. 30, 2021          
Maturity Date Dec. 30, 2026 Dec. 30, 2026 Dec. 30, 2026 Dec. 30, 2026      
Investments, fair value $ 1,000 $ (3,000)          
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Coastal Television Broadcasting Group LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:CoastalTelevisionBroadcastingGroupLLCMember whfcl:CoastalTelevisionBroadcastingGroupLLCMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Broadcasting Broadcasting Broadcasting Broadcasting      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.50% 7.00% 6.50% 7.00%      
Interest Rate 10.96% 12.46% 10.96% 12.46%      
Acquisition Date Dec. 30, 2021 Dec. 30, 2021          
Maturity Date Dec. 30, 2026 Dec. 30, 2026 Dec. 30, 2026 Dec. 30, 2026      
Principal/Share Amount $ 7,879,000 $ 7,418,000          
Investments, amortized cost 7,808,000 7,329,000          
Investments, fair value $ 7,832,000 $ 7,246,000          
Percent of net assets 2.70% 2.30% 2.70% 2.30%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Drew Foam Companies Inc First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:DrewFoamCompaniesIncMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Building Products   Building Products      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   7.25%   7.25%      
Interest Rate   12.75%   12.75%      
Acquisition Date   Nov. 09, 2020          
Maturity Date   Nov. 05, 2025   Nov. 05, 2025      
Principal/Share Amount   $ 13,644,000          
Investments, amortized cost   13,541,000          
Investments, fair value   $ 13,313,000          
Investment, Identifier [Axis]: Drew Foam Companies Inc, First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:DrewFoamCompaniesIncMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Building Products   Building Products        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 6.00%   6.00%        
Interest Rate 10.48%   10.48%        
Acquisition Date Nov. 09, 2020            
Maturity Date Dec. 07, 2026   Dec. 07, 2026        
Principal/Share Amount $ 13,501,000            
Investments, amortized cost 13,445,000            
Investments, fair value $ 13,437,000            
Investment, Identifier [Axis]: E-Phoenix Acquisition Co. Inc. First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:E-PhoenixAcquisitionCo.Inc.Member          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Research & Consulting Services   Research & Consulting Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   5.50%   5.50%      
Interest Rate   11.00%   11.00%      
Acquisition Date   Jul. 15, 2021          
Maturity Date   Jun. 23, 2027   Jun. 23, 2027      
Principal/Share Amount   $ 8,604,000          
Investments, amortized cost   8,541,000          
Investments, fair value   $ 8,562,000          
Investment, Identifier [Axis]: E-Phoenix Acquisition Co. Inc., First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:E-PhoenixAcquisitionCo.Inc.Member            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Research & Consulting Services   Research & Consulting Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 5.50%   5.50%        
Interest Rate 9.98%   9.98%        
Acquisition Date Jul. 15, 2021            
Maturity Date Jun. 23, 2027   Jun. 23, 2027        
Principal/Share Amount $ 8,342,000            
Investments, amortized cost 8,299,000            
Investments, fair value $ 8,342,000            
Investment, Identifier [Axis]: Eddy Acquisitions, LLC Preferred Units              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:EddyAcquisitionsLLCMember whfcl:EddyAcquisitionsLLCMember          
Investment, Type [Extensible Enumeration] Preferred Units [Member] Preferred Units [Member] Preferred Units [Member] Preferred Units [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Education Services Education Services Education Services Education Services      
Interest Rate 12.00% 12.00% 12.00% 12.00%      
Acquisition Date Sep. 15, 2021 Sep. 15, 2021          
Investment owned shares | shares 167 167 167 167      
Investments, amortized cost $ 167,000 $ 167,000          
Investments, fair value   $ 18,000          
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] true false true false      
Investment, Identifier [Axis]: Education Dynamics, LLC Senior Preferred Units              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:EducationDynamicsLLCMember            
Investment, Type [Extensible Enumeration] whfcl:SeniorPreferredUnitsMember   whfcl:SeniorPreferredUnitsMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Education Services   Education Services        
Acquisition Date Sep. 15, 2021            
Investment owned shares | shares 167   167        
Investments, amortized cost $ 167,000            
Investments, fair value $ 100,000            
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: EducationDynamics, LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:EducationDynamicsLLCMember whfcl:EducationDynamicsLLCMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Education Services Education Services Education Services Education Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.50% 7.00% 6.50% 7.00%      
Interest Rate 10.96% 12.46% 10.96% 12.46%      
Cash interest rate   11.96%   11.96%      
PIK interest rate   0.50%   0.50%      
Acquisition Date Sep. 15, 2021 Sep. 15, 2021          
Maturity Date Sep. 15, 2027 Sep. 15, 2026 Sep. 15, 2027 Sep. 15, 2026      
Investments, fair value $ (51,000) $ (22,000)          
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: EducationDynamics, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:EducationDynamicsLLCMember whfcl:EducationDynamicsLLCMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Education Services Education Services Education Services Education Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.50% 7.00% 6.50% 7.00%      
Interest Rate 10.96% 12.46% 10.96% 12.46%      
Cash interest rate   11.96%   11.96%      
PIK interest rate   0.50%   0.50%      
Acquisition Date Sep. 15, 2021 Sep. 15, 2021          
Maturity Date Sep. 15, 2027 Sep. 15, 2026 Sep. 15, 2027 Sep. 15, 2026      
Principal/Share Amount $ 13,089,000 $ 12,784,000          
Investments, amortized cost 12,989,000 12,647,000          
Investments, fair value $ 12,449,000 $ 12,407,000          
Percent of net assets 4.30% 4.00% 4.30% 4.00%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: EducationDynamics, LLC Subordinated Unsecured Term Loa              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:EducationDynamicsLLCMember          
Investment, Type [Extensible Enumeration]   whfcl:SubordinatedUnsecuredTermLoanMember   whfcl:SubordinatedUnsecuredTermLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Education Services   Education Services      
Interest Rate   4.00%   4.00%      
Acquisition Date   Sep. 15, 2021          
Maturity Date   Mar. 15, 2027   Mar. 15, 2027      
Principal/Share Amount   $ 167,000          
Investments, amortized cost   167,000          
Investments, fair value   $ 167,000          
Percent of net assets   0.10%   0.10%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Empire Office, Inc First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:EmpireOfficeIncMember          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Office Services & Supplies   Office Services & Supplies      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.50%   1.50%      
Spread Above Index   6.75%   6.75%      
Interest Rate   12.21%   12.21%      
Acquisition Date   Aug. 17, 2021          
Maturity Date   Apr. 12, 2024   Apr. 12, 2024      
Principal/Share Amount   $ 4,556,000          
Investments, amortized cost   4,545,000          
Investments, fair value   $ 4,556,000          
Percent of net assets   1.40%   1.40%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Empire Office, Inc First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:EmpireOfficeIncMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Office Services & Supplies   Office Services & Supplies      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.50%   1.50%      
Spread Above Index   6.75%   6.75%      
Interest Rate   12.21%   12.21%      
Acquisition Date   Apr. 12, 2019          
Maturity Date   Apr. 12, 2024   Apr. 12, 2024      
Principal/Share Amount   $ 10,947,000          
Investments, amortized cost   10,931,000          
Investments, fair value   $ 10,947,000          
Percent of net assets   3.50%   3.50%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Event Services America, Inc. (d/b/a Contemporary Services Corporation) First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:EventServicesAmericaIncMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Security & Alarm Services   Security & Alarm Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 6.75%   6.75%        
Interest Rate 11.11%   11.11%        
Acquisition Date Jan. 31, 2024            
Maturity Date Jan. 31, 2029   Jan. 31, 2029        
Principal/Share Amount $ 7,000,000            
Investments, amortized cost 6,857,000            
Investments, fair value $ 7,070,000            
Percent of net assets 2.50%   2.50%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: FGI Acquisition Corp. (d/b/a Flexitallic Group SAS) First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:FgiAcquisitionCorpMember whfcl:FgiAcquisitionCorpMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Commodity Chemicals Commodity Chemicals Commodity Chemicals Commodity Chemicals      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.50% 6.50% 6.50% 6.50%      
Interest Rate 10.98% 12.00% 10.98% 12.00%      
Acquisition Date Oct. 28, 2019 Oct. 28, 2019          
Maturity Date Oct. 29, 2026 Oct. 29, 2026 Oct. 29, 2026 Oct. 29, 2026      
Principal/Share Amount $ 16,026,000 $ 16,193,000          
Investments, amortized cost 15,765,000 15,786,000          
Investments, fair value $ 16,026,000 $ 16,110,000          
Percent of net assets 5.60% 5.10% 5.60% 5.10%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: FloWorks International LLC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:FloworksInternationalLlcMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Distributors   Distributors        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 0.75%   0.75%        
Spread Above Index 5.75%   5.75%        
Interest Rate 10.40%   10.40%        
Acquisition Date Dec. 12, 2024            
Maturity Date Nov. 26, 2031   Nov. 26, 2031        
Investment, Identifier [Axis]: FloWorks International LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:FloworksInternationalLlcMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Distributors   Distributors        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 0.75%   0.75%        
Spread Above Index 4.75%   4.75%        
Interest Rate 9.27%   9.27%        
Acquisition Date Dec. 12, 2024            
Maturity Date Nov. 26, 2031   Nov. 26, 2031        
Principal/Share Amount $ 5,333,000            
Investments, amortized cost 5,280,000            
Investments, fair value $ 5,281,000            
Investment, Identifier [Axis]: Foodservices Brand Group, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:FoodservicesBrandGroupLlcMember whfcl:FoodservicesBrandGroupLlcMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Distributors Distributors Distributors Distributors      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 8.00% 8.00% 8.00% 8.00%      
Interest Rate 12.62% 13.52% 12.62% 13.52%      
Acquisition Date Nov. 22, 2022 Nov. 22, 2022          
Maturity Date Dec. 09, 2025 Dec. 09, 2025 Dec. 09, 2025 Dec. 09, 2025      
Principal/Share Amount $ 357,000 $ 357,000          
Investments, amortized cost 357,000 357,000          
Investments, fair value $ 321,000 $ 200,000          
Percent of net assets 0.10% 0.10% 0.10% 0.10%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Foodservices Brand Group, LLC Second Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:FoodservicesBrandGroupLlcMember          
Investment, Type [Extensible Enumeration]   whfcl:SecondLienSecuredTermLoanMember   whfcl:SecondLienSecuredTermLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Distributors   Distributors      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.50%   1.50%      
Spread Above Index   6.50%   6.50%      
Interest Rate   11.96%   11.96%      
Acquisition Date   Nov. 22, 2022          
Maturity Date   Jan. 08, 2026   Jan. 08, 2026      
Principal/Share Amount   $ 5,171,000          
Investments, amortized cost   4,915,000          
Investments, fair value   $ 1,601,000          
Percent of net assets   0.50%   0.50%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Forward Solutions, LLC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:ForwardSolutionsLlcMember whfcl:ForwardSolutionsLlcMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Advertising Advertising Advertising Advertising      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.75% 6.75% 6.75% 6.75%      
Interest Rate 11.23% 12.25% 11.23% 12.25%      
Acquisition Date Mar. 11, 2022 Mar. 11, 2022          
Maturity Date Dec. 15, 2026 Dec. 15, 2026 Dec. 15, 2026 Dec. 15, 2026      
Principal/Share Amount $ 3,023,000 $ 3,054,000          
Investments, amortized cost 3,000,000 3,018,000          
Investments, fair value $ 3,023,000 $ 3,025,000          
Investment, Identifier [Axis]: Forward Solutions, LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:ForwardSolutionsLlcMember whfcl:ForwardSolutionsLlcMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Advertising Advertising Advertising Advertising      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.75% 6.75% 6.75% 6.75%      
Interest Rate 11.23% 12.25% 11.23% 12.25%      
Acquisition Date Feb. 18, 2022 Feb. 18, 2022          
Maturity Date Dec. 15, 2026 Dec. 15, 2026 Dec. 15, 2026 Dec. 15, 2026      
Investments, fair value $ 5,000 $ 1,000          
Investment, Identifier [Axis]: Forward Solutions, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:ForwardSolutionsLlcMember whfcl:ForwardSolutionsLlcMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Advertising Advertising Advertising Advertising      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.75% 6.75% 6.75% 6.75%      
Interest Rate 11.23% 12.25% 11.23% 12.25%      
Acquisition Date Feb. 18, 2022 Feb. 18, 2022          
Maturity Date Dec. 15, 2026 Dec. 15, 2026 Dec. 15, 2026 Dec. 15, 2026      
Principal/Share Amount $ 9,007,000 $ 9,100,000          
Investments, amortized cost 8,937,000 8,991,000          
Investments, fair value $ 9,007,000 $ 9,014,000          
Investment, Identifier [Axis]: Future Payment Technologies, LP First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:FuturePaymentTechnologiesLPMember whfcl:FuturePaymentTechnologiesLPMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Data Processing & Outsourced Services Data Processing & Outsourced Services Data Processing & Outsourced Services Data Processing & Outsourced Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 8.25% 8.25% 8.25% 8.25%      
Interest Rate 12.90% 13.69% 12.90% 13.69%      
Acquisition Date Dec. 23, 2016 Dec. 23, 2016          
Maturity Date Dec. 05, 2025 Dec. 05, 2025 Dec. 05, 2025 Dec. 05, 2025      
Principal/Share Amount $ 20,420,000 $ 21,665,000          
Investments, amortized cost 20,382,000 21,582,000          
Investments, fair value $ 20,420,000 $ 21,480,000          
Percent of net assets 7.10% 6.80% 7.10% 6.80%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Geo Logic Systems Ltd First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:GeoLogicSystemsLtdMember whfcl:GeoLogicSystemsLtdMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Data Processing & Outsourced Services Data Processing & Outsourced Services Data Processing & Outsourced Services Data Processing & Outsourced Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:CanadianOvernightRepoRateAverageMember whfcl:CanadianDollarOfferedRateMember whfcl:CanadianOvernightRepoRateAverageMember whfcl:CanadianDollarOfferedRateMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.00% 6.50% 6.00% 6.50%      
Interest Rate 9.49% 11.94% 9.49% 11.94%      
Acquisition Date Jan. 22, 2020 Jan. 22, 2020          
Maturity Date Dec. 21, 2026 Dec. 19, 2024 Dec. 21, 2026 Dec. 19, 2024      
Investments, fair value $ 2,000 $ 5,000          
Investment, Identifier [Axis]: Geo Logic Systems Ltd First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:GeoLogicSystemsLtdMember whfcl:GeoLogicSystemsLtdMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Data Processing & Outsourced Services Data Processing & Outsourced Services Data Processing & Outsourced Services Data Processing & Outsourced Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:CanadianOvernightRepoRateAverageMember whfcl:CanadianDollarOfferedRateMember whfcl:CanadianOvernightRepoRateAverageMember whfcl:CanadianDollarOfferedRateMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.00% 6.50% 6.00% 6.50%      
Interest Rate 9.49% 11.94% 9.49% 11.94%      
Acquisition Date Jan. 22, 2020 Jan. 22, 2020          
Maturity Date Dec. 21, 2026 Dec. 19, 2024 Dec. 21, 2026 Dec. 19, 2024      
Principal/Share Amount $ 18,415,000 $ 19,416,000          
Investments, amortized cost 14,234,000 14,969,000          
Investments, fair value $ 12,883,000 $ 14,654,000          
Investment, Identifier [Axis]: Gulf Winds International Acquisition, LLC (d/b/a Gulf Winds International, Inc.) First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:GulfWindsInternationalAcquisitionLlcMember whfcl:GulfWindsInternationalAcquisitionLlcMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 7.50% 7.00% 7.50% 7.00%      
Interest Rate 11.95% 12.46% 11.95% 12.46%      
Acquisition Date Dec. 16, 2022 Dec. 16, 2022          
Maturity Date Dec. 18, 2028 Dec. 18, 2028 Dec. 18, 2028 Dec. 18, 2028      
Principal/Share Amount $ 453,000            
Investments, amortized cost 444,000            
Investments, fair value $ 447,000 $ 7,000          
Percent of net assets 0.20%   0.20%        
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Gulf Winds International Acquisition, LLC (d/b/a Gulf Winds International, Inc.) First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:GulfWindsInternationalAcquisitionLlcMember whfcl:GulfWindsInternationalAcquisitionLlcMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 7.60% 7.00% 7.60% 7.00%      
Interest Rate 11.96% 12.46% 11.96% 12.46%      
Acquisition Date Dec. 16, 2022 Dec. 16, 2022          
Maturity Date Dec. 18, 2028 Dec. 18, 2028 Dec. 18, 2028 Dec. 18, 2028      
Principal/Share Amount $ 8,994,000 $ 4,804,000          
Investments, amortized cost 8,811,000 4,685,000          
Investments, fair value $ 8,857,000 $ 4,738,000          
Percent of net assets 3.10% 1.50% 3.10% 1.50%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: H I G Camarillo, LP, Limited Partners Interests              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled affiliate company investments   Non-controlled affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:HIGCamarilloLpMember            
Investment, Type [Extensible Enumeration] whfcl:LimitedPartnerInterestsMember   whfcl:LimitedPartnerInterestsMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Leisure Facilities   Leisure Facilities        
Acquisition Date Sep. 25, 2024            
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: HC Salon Holdings, Inc First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:HCSalonHoldingsIncMember          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Research & Consulting Services   Research & Consulting Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   6.50%   6.50%      
Interest Rate   12.11%   12.11%      
Acquisition Date   Sep. 30, 2021          
Maturity Date   Sep. 30, 2026   Sep. 30, 2026      
Investments, fair value   $ 8,000          
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: HC Salon Holdings, Inc First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:HCSalonHoldingsIncMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Research & Consulting Services   Research & Consulting Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   6.50%   6.50%      
Interest Rate   12.11%   12.11%      
Acquisition Date   Sep. 30, 2021          
Maturity Date   Sep. 30, 2026   Sep. 30, 2026      
Principal/Share Amount   $ 11,404,000          
Investments, amortized cost   11,279,000          
Investments, fair value   $ 11,404,000          
Percent of net assets   3.60%   3.60%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: HRG Management, LLC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:HRGManagementLLCMember whfcl:HRGManagementLLCMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Real Estate Services [Member] Real Estate Services [Member] Real Estate Services [Member] Real Estate Services [Member]      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Base Rate [Member] Base Rate [Member] Base Rate [Member] Base Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.97% 6.22% 6.97% 6.22%      
Interest Rate 11.29% 12.10% 11.29% 12.10%      
Acquisition Date Feb. 18, 2022 Feb. 18, 2022          
Maturity Date Oct. 19, 2026 Oct. 19, 2026 Oct. 19, 2026 Oct. 19, 2026      
Principal/Share Amount $ 1,395,000 $ 2,398,000          
Investments, amortized cost 1,384,000 2,369,000          
Investments, fair value $ 1,354,000 $ 2,282,000          
Investment, Identifier [Axis]: HRG Management, LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:HRGManagementLLCMember whfcl:HRGManagementLLCMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Real Estate Services [Member] Real Estate Services [Member] Real Estate Services [Member] Real Estate Services [Member]      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.25% 6.25% 6.25% 6.25%      
Interest Rate 11.02% 11.80% 11.02% 11.80%      
Acquisition Date Feb. 18, 2022 Feb. 18, 2022          
Maturity Date Oct. 19, 2026 Oct. 19, 2026 Oct. 19, 2026 Oct. 19, 2026      
Principal/Share Amount $ 483,000 $ 596,000          
Investments, amortized cost 480,000 589,000          
Investments, fair value $ 455,000 $ 547,000          
Investment, Identifier [Axis]: HRG Management, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:HRGManagementLLCMember whfcl:HRGManagementLLCMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Real Estate Services [Member] Real Estate Services [Member] Real Estate Services [Member] Real Estate Services [Member]      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.25% 6.25% 6.25% 6.25%      
Interest Rate 11.02% 11.80% 11.02% 11.80%      
Acquisition Date Dec. 28, 2021 Dec. 28, 2021          
Maturity Date Oct. 19, 2026 Oct. 19, 2026 Oct. 19, 2026 Oct. 19, 2026      
Principal/Share Amount $ 5,563,000 $ 9,555,000          
Investments, amortized cost 5,523,000 9,448,000          
Investments, fair value $ 5,395,000 $ 9,074,000          
Investment, Identifier [Axis]: Hollander Intermediate LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:HollanderIntermediateLlcMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Home Furnishings   Home Furnishings      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   3.00%   3.00%      
Spread Above Index   10.75%   10.75%      
Interest Rate   16.22%   16.22%      
Acquisition Date   Sep. 19, 2022          
Maturity Date   Sep. 21, 2026   Sep. 21, 2026      
Principal/Share Amount   $ 4,689,000          
Investments, amortized cost   4,661,000          
Investments, fair value   $ 4,179,000          
Percent of net assets   1.30%   1.30%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Honors Holdings, LLC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   Honors Holdings, LLC [Member]          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Leisure Facilities   Leisure Facilities      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   6.37%   6.37%      
Interest Rate   11.90%   11.90%      
Acquisition Date   Sep. 06, 2019          
Maturity Date   Sep. 06, 2024   Sep. 06, 2024      
Principal/Share Amount   $ 4,650,000          
Investments, amortized cost   4,631,000          
Investments, fair value   $ 4,603,000          
Percent of net assets   1.50%   1.50%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Honors Holdings, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   Honors Holdings, LLC [Member]          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Leisure Facilities   Leisure Facilities      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   6.49%   6.49%      
Interest Rate   12.02%   12.02%      
Acquisition Date   Sep. 06, 2019          
Maturity Date   Sep. 06, 2024   Sep. 06, 2024      
Principal/Share Amount   $ 9,441,000          
Investments, amortized cost   9,375,000          
Investments, fair value   $ 9,347,000          
Percent of net assets   3.00%   3.00%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: ITS Buyer Inc. First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:ITSBuyerIncMember whfcl:ITSBuyerIncMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 5.50% 5.50% 5.50% 5.50%      
Interest Rate 10.35% 11.11% 10.35% 11.11%      
Acquisition Date Feb. 17, 2022 Feb. 17, 2022          
Maturity Date Jun. 15, 2026 Jun. 15, 2026 Jun. 15, 2026 Jun. 15, 2026      
Investments, fair value $ 4,000            
Investment, Identifier [Axis]: ITS Buyer Inc. First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:ITSBuyerIncMember whfcl:ITSBuyerIncMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 5.50% 5.50% 5.50% 5.50%      
Interest Rate 10.35% 11.11% 10.35% 11.11%      
Acquisition Date Feb. 17, 2022 Feb. 17, 2022          
Maturity Date Jun. 15, 2026 Jun. 15, 2026 Jun. 15, 2026 Jun. 15, 2026      
Principal/Share Amount $ 3,307,000 $ 3,541,000          
Investments, amortized cost 3,286,000 3,503,000          
Investments, fair value $ 3,307,000 $ 3,504,000          
Investment, Identifier [Axis]: ImageOne Industries, LLC Common A Units              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:ImageOneIndustriesLLCMember whfcl:ImageOneIndustriesLLCMember          
Investment, Type [Extensible Enumeration] whfcl:CommonUnitsMember whfcl:CommonAUnitsMember whfcl:CommonUnitsMember whfcl:CommonAUnitsMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Advertising Advertising Advertising Advertising      
Acquisition Date Sep. 20, 2019 Sep. 20, 2019          
Investment owned shares | shares 235 149 235 149      
Investments, amortized cost $ 10,000 $ 7,000          
Investments, fair value $ 12,000 $ 9,000          
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Industrial Specialty Services USA LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:IndustrialSpecialtyServicesUSALLCMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Environmental & Facilities Services   Environmental & Facilities Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   6.75%   6.75%      
Interest Rate   12.25%   12.25%      
Acquisition Date   Dec. 31, 2021          
Maturity Date   Dec. 31, 2026   Dec. 31, 2026      
Principal/Share Amount   $ 11,767,000          
Investments, amortized cost   11,626,000          
Investments, fair value   $ 11,537,000          
Percent of net assets   3.60%   3.60%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: JVMC Holdings Corp First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:JVMCHoldingsCorpMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Investment Banking & Brokerage   Investment Banking & Brokerage      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   6.50%   6.50%      
Interest Rate   11.96%   11.96%      
Acquisition Date   Feb. 28, 2019          
Maturity Date   Feb. 28, 2024   Feb. 28, 2024      
Principal/Share Amount   $ 3,522,000          
Investments, amortized cost   3,521,000          
Investments, fair value   $ 3,522,000          
Percent of net assets   1.10%   1.10%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Juniper Landscaping Holdings LLC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:JuniperLandscapingHoldingsLLCMember whfcl:JuniperLandscapingHoldingsLLCMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.25% 6.25% 6.25% 6.25%      
Interest Rate 10.85% 11.94% 10.85% 11.94%      
Acquisition Date Mar. 01, 2022 Mar. 01, 2022          
Maturity Date Dec. 29, 2026 Dec. 29, 2026 Dec. 29, 2026 Dec. 29, 2026      
Principal/Share Amount $ 2,343,000 $ 2,366,000          
Investments, amortized cost 2,326,000 2,341,000          
Investments, fair value $ 2,343,000 $ 2,342,000          
Investment, Identifier [Axis]: Juniper Landscaping Holdings LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:JuniperLandscapingHoldingsLLCMember whfcl:JuniperLandscapingHoldingsLLCMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.25% 6.25% 6.25% 6.25%      
Interest Rate 10.82% 12.11% 10.82% 12.11%      
Acquisition Date Mar. 01, 2022 Mar. 01, 2022          
Maturity Date Dec. 29, 2026 Dec. 29, 2026 Dec. 29, 2026 Dec. 29, 2026      
Principal/Share Amount $ 517,000 $ 199,000          
Investments, amortized cost 513,000 197,000          
Investments, fair value $ 522,000 $ 193,000          
Investment, Identifier [Axis]: Juniper Landscaping Holdings LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:JuniperLandscapingHoldingsLLCMember whfcl:JuniperLandscapingHoldingsLLCMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services Environmental & Facilities Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.25% 6.25% 6.25% 6.25%      
Interest Rate 10.84% 11.86% 10.84% 11.86%      
Acquisition Date Mar. 01, 2022 Mar. 01, 2022          
Maturity Date Dec. 29, 2026 Dec. 29, 2026 Dec. 29, 2026 Dec. 29, 2026      
Principal/Share Amount $ 11,078,000 $ 11,192,000          
Investments, amortized cost 11,000,000 11,073,000          
Investments, fair value $ 11,078,000 $ 11,080,000          
Investment, Identifier [Axis]: KORE Wireless Group Inc. First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:KoreWirelessGroupIncMember whfcl:KoreWirelessGroupIncMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Wireless Telecommunication Services Wireless Telecommunication Services Wireless Telecommunication Services Wireless Telecommunication Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.50% 6.50% 6.50% 6.50%      
Interest Rate 11.02% 11.88% 11.02% 11.88%      
Acquisition Date Nov. 27, 2023 Nov. 27, 2023          
Maturity Date Nov. 09, 2028 Nov. 09, 2028 Nov. 09, 2028 Nov. 09, 2028      
Investments, fair value $ 9,000            
Investment, Identifier [Axis]: KORE Wireless Group Inc. First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:KoreWirelessGroupIncMember whfcl:KoreWirelessGroupIncMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Wireless Telecommunication Services Wireless Telecommunication Services Wireless Telecommunication Services Wireless Telecommunication Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.50% 6.50% 6.50% 6.50%      
Interest Rate 11.02% 11.88% 11.02% 11.88%      
Acquisition Date Nov. 27, 2023 Nov. 27, 2023          
Maturity Date Nov. 09, 2028 Nov. 09, 2028 Nov. 09, 2028 Nov. 09, 2028      
Principal/Share Amount $ 6,354,000 $ 6,418,000          
Investments, amortized cost 6,256,000 6,294,000          
Investments, fair value $ 6,323,000 $ 6,295,000          
Investment, Identifier [Axis]: Kelso Industries LLC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] Kelso Industries L L C [Member]            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Construction & Engineering   Construction & Engineering        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 5.75%   5.75%        
Interest Rate 10.09%   10.09%        
Acquisition Date Dec. 26, 2024            
Maturity Date Dec. 31, 2029   Dec. 31, 2029        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Kelso Industries LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] Kelso Industries L L C [Member]            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Construction & Engineering   Construction & Engineering        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 5.75%   5.75%        
Interest Rate 10.09%   10.09%        
Acquisition Date Dec. 26, 2024            
Maturity Date Dec. 31, 2029   Dec. 31, 2029        
Principal/Share Amount $ 3,611,000            
Investments, amortized cost 3,539,000            
Investments, fair value $ 3,539,000            
Percent of net assets 1.20%   1.20%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Keras Holdings, LLC Shares              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:KerasHoldingsLLCMember whfcl:KerasHoldingsLLCMember          
Investment, Type [Extensible Enumeration] Common Stock [Member] Common Stock [Member] Common Stock [Member] Common Stock [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services      
Acquisition Date Dec. 31, 2020 Dec. 31, 2020          
Investment owned shares | shares 496 496 496 496      
Investments, amortized cost $ 496,000 $ 496,000          
Investments, fair value $ 779,000 $ 683,000          
Percent of net assets 0.30% 0.20% 0.30% 0.20%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: LINC Systems, LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:LINCSystemsLLCMember          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Paper & Plastic Packaging Products & Materials   Paper & Plastic Packaging Products & Materials      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   6.25%   6.25%      
Interest Rate   11.93%   11.93%      
Acquisition Date   Jun. 22, 2021          
Maturity Date   Feb. 24, 2026   Feb. 24, 2026      
Investments, fair value   $ (1,000)          
Investment, Identifier [Axis]: LINC Systems, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:LINCSystemsLLCMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Paper & Plastic Packaging Products & Materials   Paper & Plastic Packaging Products & Materials      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   6.25%   6.25%      
Interest Rate   11.93%   11.93%      
Acquisition Date   Jun. 22, 2021          
Maturity Date   Feb. 24, 2026   Feb. 24, 2026      
Principal/Share Amount   $ 8,534,000          
Investments, amortized cost   8,454,000          
Investments, fair value   $ 8,443,000          
Investment, Identifier [Axis]: LINC Systems, LLC, First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:LINCSystemsLLCMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Paper & Plastic Packaging Products & Materials   Paper & Plastic Packaging Products & Materials        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 8.50%   8.50%        
Interest Rate 12.99%   12.99%        
Acquisition Date Jun. 22, 2021            
Maturity Date Feb. 24, 2026   Feb. 24, 2026        
Investments, fair value $ 3,000            
Investment, Identifier [Axis]: LINC Systems, LLC, First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:LINCSystemsLLCMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Paper & Plastic Packaging Products & Materials   Paper & Plastic Packaging Products & Materials        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 8.50%   8.50%        
Interest Rate 12.99%   12.99%        
Acquisition Date Jun. 22, 2021            
Maturity Date Feb. 24, 2026   Feb. 24, 2026        
Principal/Share Amount $ 8,155,000            
Investments, amortized cost 8,114,000            
Investments, fair value $ 8,155,000            
Investment, Identifier [Axis]: LMG Holdings, Inc First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:LMGHoldingsIncMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Electronic Equipment & Instruments   Electronic Equipment & Instruments      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   6.50%   6.50%      
Interest Rate   12.00%   12.00%      
Acquisition Date   Jun. 28, 2021          
Maturity Date   Apr. 30, 2026   Apr. 30, 2026      
Principal/Share Amount   $ 13,330,000          
Investments, amortized cost   13,203,000          
Investments, fair value   $ 13,265,000          
Investment, Identifier [Axis]: LMG Holdings, Inc. First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:LMGHoldingsIncMember          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Electronic Equipment & Instruments   Electronic Equipment & Instruments      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   6.50%   6.50%      
Interest Rate   12.00%   12.00%      
Acquisition Date   Jun. 28, 2021          
Maturity Date   Apr. 30, 2026   Apr. 30, 2026      
Investments, fair value   $ 4,000          
Investment, Identifier [Axis]: LSCS Holdings, Inc Second Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:LSCSHoldingsIncMember whfcl:LSCSHoldingsIncMember          
Investment, Type [Extensible Enumeration] whfcl:SecondLienSecuredTermLoanMember whfcl:SecondLienSecuredTermLoanMember whfcl:SecondLienSecuredTermLoanMember whfcl:SecondLienSecuredTermLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Life Sciences Tools & Services Life Sciences Tools & Services Life Sciences Tools & Services Life Sciences Tools & Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 0.50% 0.50% 0.50% 0.50%      
Spread Above Index 8.00% 8.00% 8.00% 8.00%      
Interest Rate 12.47% 13.47% 12.47% 13.47%      
Acquisition Date Nov. 23, 2021 Nov. 23, 2021          
Maturity Date Dec. 16, 2029 Dec. 16, 2029 Dec. 16, 2029 Dec. 16, 2029      
Principal/Share Amount $ 5,000,000 $ 5,000,000          
Investments, amortized cost 4,953,000 4,944,000          
Investments, fair value $ 5,000,000 $ 4,901,000          
Percent of net assets 1.70% 1.50% 1.70% 1.50%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Lab Logistics, LLC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:LabLogisticsLLCMember whfcl:LabLogisticsLLCMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Health Care Services Health Care Services Health Care Services Health Care Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 7.25% 7.25% 7.25% 7.25%      
Interest Rate 11.71% 12.71% 11.71% 12.71%      
Acquisition Date Oct. 16, 2019 Oct. 16, 2019          
Maturity Date Dec. 31, 2025 Sep. 25, 2024 Dec. 31, 2025 Sep. 25, 2024      
Principal/Share Amount $ 5,020,000 $ 5,090,000          
Investments, amortized cost 5,020,000 5,089,000          
Investments, fair value $ 5,020,000 $ 5,090,000          
Percent of net assets 1.80% 1.60% 1.80% 1.60%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Lab Logistics, LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:LabLogisticsLLCMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Health Care Services   Health Care Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 7.25%   7.25%        
Interest Rate 11.71%   11.71%        
Acquisition Date Sep. 17, 2024            
Maturity Date Dec. 31, 2025   Dec. 31, 2025        
Principal/Share Amount $ 437,000            
Investments, amortized cost 437,000            
Investments, fair value $ 437,000            
Percent of net assets 0.20%   0.20%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Lab Logistics, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:LabLogisticsLLCMember whfcl:LabLogisticsLLCMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Health Care Services Health Care Services Health Care Services Health Care Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 7.25% 7.25% 7.25% 7.25%      
Interest Rate 11.71% 12.71% 11.71% 12.71%      
Acquisition Date Oct. 16, 2019 Oct. 16, 2019          
Maturity Date Dec. 31, 2025 Sep. 25, 2024 Dec. 31, 2025 Sep. 25, 2024      
Principal/Share Amount $ 5,383,000 $ 5,449,000          
Investments, amortized cost 5,381,000 5,442,000          
Investments, fair value $ 5,383,000 $ 5,449,000          
Percent of net assets 1.90% 1.70% 1.90% 1.70%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Leviathan Intermediate Holdco, LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:LeviathanIntermediateHoldcoLlcMember whfcl:LeviathanIntermediateHoldcoLlcMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Leisure Products Leisure Products Leisure Products Leisure Products      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.50% 1.50% 1.50% 1.50%      
Spread Above Index 7.50% 7.50% 7.50% 7.50%      
Interest Rate 11.98% 13.00% 11.98% 13.00%      
Acquisition Date Dec. 27, 2022 Dec. 27, 2022          
Maturity Date Dec. 27, 2027 Dec. 27, 2027 Dec. 27, 2027 Dec. 27, 2027      
Investments, fair value $ 10,000 $ 14,000          
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Leviathan Intermediate Holdco, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:LeviathanIntermediateHoldcoLlcMember whfcl:LeviathanIntermediateHoldcoLlcMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Leisure Products Leisure Products Leisure Products Leisure Products      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.50% 1.50% 1.50% 1.50%      
Spread Above Index 7.50% 7.50% 7.50% 7.50%      
Interest Rate 11.98% 13.00% 11.98% 13.00%      
Acquisition Date Dec. 27, 2022 Dec. 27, 2022          
Maturity Date Dec. 27, 2027 Dec. 27, 2027 Dec. 27, 2027 Dec. 27, 2027      
Principal/Share Amount $ 13,211,000 $ 10,346,000          
Investments, amortized cost 12,981,000 10,098,000          
Investments, fair value $ 13,312,000 $ 10,346,000          
Percent of net assets 4.60% 3.30% 4.60% 3.30%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Lift Brands, Inc First Lien Secured Term Loan A              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:LiftBrandsIncMember whfcl:LiftBrandsIncMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredTermLoanAMember whfcl:FirstLienSecuredTermLoanAMember whfcl:FirstLienSecuredTermLoanAMember whfcl:FirstLienSecuredTermLoanAMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Leisure Facilities Leisure Facilities Leisure Facilities Leisure Facilities      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 7.50% 7.50% 7.50% 7.50%      
Interest Rate 11.96% 12.96% 11.96% 12.96%      
Acquisition Date Jun. 29, 2020 Jun. 29, 2020          
Maturity Date Jun. 29, 2025 Jun. 29, 2025 Jun. 29, 2025 Jun. 29, 2025      
Principal/Share Amount $ 5,461,000 $ 5,518,000          
Investments, amortized cost 5,453,000 5,492,000          
Investments, fair value $ 5,461,000 $ 5,457,000          
Percent of net assets 1.90% 1.70% 1.90% 1.70%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Lift Brands, Inc First Lien Secured Term Loan B              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:LiftBrandsIncMember whfcl:LiftBrandsIncMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredTermLoanBMember whfcl:FirstLienSecuredTermLoanBMember whfcl:FirstLienSecuredTermLoanBMember whfcl:FirstLienSecuredTermLoanBMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Leisure Facilities Leisure Facilities Leisure Facilities Leisure Facilities      
Interest Rate 9.50% 9.50% 9.50% 9.50%      
PIK interest rate   9.50%   9.50%      
Acquisition Date Jun. 29, 2020 Jun. 29, 2020          
Maturity Date Jun. 29, 2025 Jun. 29, 2025 Jun. 29, 2025 Jun. 29, 2025      
Principal/Share Amount $ 1,594,000 $ 1,450,000          
Investments, amortized cost 1,592,000 1,441,000          
Investments, fair value $ 1,594,000 $ 1,406,000          
Percent of net assets 0.60% 0.40% 0.60% 0.40%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: LogicMonitor, Inc. First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] LogicMonitor, Inc. [Member]            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Systems Software   Systems Software        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 0.75%   0.75%        
Spread Above Index 5.50%   5.50%        
Interest Rate 9.99%   9.99%        
Acquisition Date Nov. 19, 2024            
Maturity Date Nov. 19, 2031   Nov. 19, 2031        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: LogicMonitor, Inc. First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] LogicMonitor, Inc. [Member]            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Systems Software   Systems Software        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 0.75%   0.75%        
Spread Above Index 5.50%   5.50%        
Interest Rate 9.99%   9.99%        
Acquisition Date Nov. 19, 2024            
Maturity Date Nov. 19, 2031   Nov. 19, 2031        
Principal/Share Amount $ 6,220,000            
Investments, amortized cost 6,144,000            
Investments, fair value $ 6,144,000            
Percent of net assets 2.10%   2.10%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Luxury Brand Holdings, Inc First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:LuxuryBrandHoldingsIncMember whfcl:LuxuryBrandHoldingsIncMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Broadline Retail Broadline Retail Broadline Retail Broadline Retail      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 5.75% 6.50% 5.75% 6.50%      
Interest Rate 10.11% 11.96% 10.11% 11.96%      
Acquisition Date Dec. 04, 2020 Dec. 04, 2020          
Maturity Date Jun. 04, 2026 Jun. 04, 2026 Jun. 04, 2026 Jun. 04, 2026      
Principal/Share Amount $ 4,580,000 $ 5,280,000          
Investments, amortized cost 4,556,000 5,233,000          
Investments, fair value $ 4,580,000 $ 5,280,000          
Percent of net assets 1.60% 1.70% 1.60% 1.70%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: M2S Group Intermediate Holdings, Inc. First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:M2sGroupIntermediateHoldingsIncMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Paper Products   Paper Products        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Base Rate [Member]   Base Rate [Member]        
Floor 0.50%   0.50%        
Spread Above Index 4.73%   4.73%        
Interest Rate 9.10%   9.10%        
Acquisition Date Aug. 22, 2024            
Maturity Date Aug. 25, 2031   Aug. 25, 2031        
Principal/Share Amount $ 9,770,000            
Investments, amortized cost 9,119,000            
Investments, fair value $ 9,453,000            
Percent of net assets 3.30%   3.30%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: MBS Highway, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:MbsHighwayLlcMember whfcl:MbsHighwayLlcMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Application Software Application Software Application Software Application Software      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 8.50% 7.50% 8.50% 7.50%      
Interest Rate 13.20% 13.18% 13.20% 13.18%      
Cash interest rate 12.70%   12.70%        
PIK interest rate 0.50%   0.50%        
Acquisition Date Oct. 13, 2022 Oct. 13, 2022          
Maturity Date Oct. 13, 2027 Oct. 13, 2027 Oct. 13, 2027 Oct. 13, 2027      
Principal/Share Amount $ 9,286,000 $ 9,381,000          
Investments, amortized cost 9,157,000 9,204,000          
Investments, fair value $ 9,212,000 $ 9,089,000          
Percent of net assets 3.20% 2.90% 3.20% 2.90%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: MGT Merger Target, LLC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:MgtMergerTargetLlcMember whfcl:MgtMergerTargetLlcMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 5.97% 6.50% 5.97% 6.50%      
Interest Rate 10.51% 11.98% 10.51% 11.98%      
Acquisition Date May 10, 2023 May 10, 2023          
Maturity Date Apr. 10, 2029 Apr. 10, 2029 Apr. 10, 2029 Apr. 10, 2029      
Principal/Share Amount $ 821,000 $ 392,000          
Investments, amortized cost 804,000 378,000          
Investments, fair value $ 817,000 $ 389,000          
Investment, Identifier [Axis]: MGT Merger Target, LLC First lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:MgtMergerTargetLlcMember whfcl:MgtMergerTargetLlcMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] us-gaap:PrimeRateMember Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] us-gaap:PrimeRateMember Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 5.50% 6.50% 5.50% 6.50%      
Interest Rate 13.00% 11.98% 13.00% 11.98%      
Acquisition Date May 10, 2023 May 10, 2023          
Maturity Date Apr. 10, 2028 Apr. 10, 2028 Apr. 10, 2028 Apr. 10, 2028      
Principal/Share Amount $ 241,000            
Investments, amortized cost 236,000            
Investments, fair value $ 249,000 $ 11,000          
Investment, Identifier [Axis]: MGT Merger Target, LLC First lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:MgtMergerTargetLlcMember whfcl:MgtMergerTargetLlcMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.39% 6.50% 6.39% 6.50%      
Interest Rate 10.85% 11.98% 10.85% 11.98%      
Acquisition Date May 10, 2023 May 10, 2023          
Maturity Date Apr. 10, 2029 Apr. 10, 2029 Apr. 10, 2029 Apr. 10, 2029      
Principal/Share Amount $ 7,187,000 $ 6,247,000          
Investments, amortized cost 7,040,000 6,084,000          
Investments, fair value $ 7,176,000 $ 6,194,000          
Investment, Identifier [Axis]: MSI Information Services, Inc First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:MSIInformationServicesIncMember          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Education Services   Education Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Base Rate [Member]   Base Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   6.84%   6.84%      
Interest Rate   15.06%   15.06%      
Acquisition Date   Apr. 25, 2022          
Maturity Date   Apr. 24, 2026   Apr. 24, 2026      
Principal/Share Amount   $ 825,000          
Investments, amortized cost   815,000          
Investments, fair value   $ 776,000          
Percent of net assets   0.20%   0.20%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: MSI Information Services, Inc First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:MSIInformationServicesIncMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Education Services   Education Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   7.75%   7.75%      
Interest Rate   13.29%   13.29%      
Acquisition Date   Apr. 25, 2022          
Maturity Date   Apr. 24, 2026   Apr. 24, 2026      
Principal/Share Amount   $ 7,333,000          
Investments, amortized cost   7,248,000          
Investments, fair value   $ 6,972,000          
Percent of net assets   2.20%   2.20%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: MSI Information Services, Inc. First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:MSIInformationServicesIncMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Education Services   Education Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Base Rate [Member]   Base Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 8.82%   8.82%        
Interest Rate 15.24%   15.24%        
Acquisition Date Apr. 25, 2022            
Maturity Date Apr. 24, 2026   Apr. 24, 2026        
Principal/Share Amount $ 1,050,000            
Investments, amortized cost 1,043,000            
Investments, fair value $ 945,000            
Percent of net assets 0.30%   0.30%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: MSI Information Services, Inc. First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:MSIInformationServicesIncMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Education Services   Education Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 9.75%   9.75%        
Interest Rate 14.23%   14.23%        
Acquisition Date Apr. 25, 2022            
Maturity Date Apr. 24, 2026   Apr. 24, 2026        
Principal/Share Amount $ 8,746,000            
Investments, amortized cost 8,552,000            
Investments, fair value $ 7,871,000            
Percent of net assets 2.80%   2.80%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Mamp;M OpCo. LLC (d/b/a Escalent, Inc.) First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] M&M OpCo. LLC (d/b/a Escalent, Inc.) M&M OpCo. LLC (d/b/a Escalent, Inc.)          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Research & Consulting Services Research & Consulting Services Research & Consulting Services Research & Consulting Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 8.00% 8.00% 8.00% 8.00%      
Interest Rate 12.43% 13.45% 12.43% 13.45%      
Acquisition Date Apr. 07, 2023 Apr. 07, 2023          
Maturity Date Apr. 09, 2029 Apr. 09, 2029 Apr. 09, 2029 Apr. 09, 2029      
Investments, fair value $ 5,000 $ (1,000)          
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Mamp;M OpCo. LLC (d/b/a Escalent, Inc.) First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] M&M OpCo. LLC (d/b/a Escalent, Inc.) M&M OpCo. LLC (d/b/a Escalent, Inc.)          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Research & Consulting Services Research & Consulting Services Research & Consulting Services Research & Consulting Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 8.00% 8.00% 8.00% 8.00%      
Interest Rate 12.43% 13.45% 12.43% 13.45%      
Acquisition Date Apr. 07, 2023 Apr. 07, 2023          
Maturity Date Apr. 09, 2029 Apr. 09, 2029 Apr. 09, 2029 Apr. 09, 2029      
Principal/Share Amount $ 4,927,000 $ 4,726,000          
Investments, amortized cost 4,823,000 4,602,000          
Investments, fair value $ 4,922,000 $ 4,580,000          
Percent of net assets 1.70% 1.40% 1.70% 1.40%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Manchester Acquisition Sub LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:ManchesterAcquisitionSubLLCMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Diversified Chemicals   Diversified Chemicals      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   0.75%   0.75%      
Spread Above Index   5.75%   5.75%      
Interest Rate   11.28%   11.28%      
Acquisition Date   Nov. 16, 2021          
Maturity Date   Dec. 01, 2026   Dec. 01, 2026      
Principal/Share Amount   $ 7,840,000          
Investments, amortized cost   7,587,000          
Investments, fair value   $ 7,215,000          
Percent of net assets   2.30%   2.30%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Marlin DTC-LS Midco 2, LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:MarlinDTC-LSMidco2LLCMember whfcl:MarlinDTC-LSMidco2LLCMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Broadline Retail Broadline Retail Broadline Retail Broadline Retail      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.50% 6.50% 6.50% 6.50%      
Interest Rate 11.03% 11.99% 11.03% 11.99%      
Acquisition Date Jul. 19, 2019 Jul. 19, 2019          
Maturity Date Jul. 01, 2025 Jul. 01, 2025 Jul. 01, 2025 Jul. 01, 2025      
Investments, fair value $ (38,000) $ (3,000)          
Investment, Identifier [Axis]: Marlin DTC-LS Midco 2, LLC First Lien Secured Term              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:MarlinDTC-LSMidco2LLCMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Broadline Retail   Broadline Retail      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   6.50%   6.50%      
Interest Rate   11.99%   11.99%      
Acquisition Date   Jul. 19, 2019          
Maturity Date   Jul. 01, 2025   Jul. 01, 2025      
Principal/Share Amount   $ 18,908,000          
Investments, amortized cost   18,798,000          
Investments, fair value   $ 18,762,000          
Investment, Identifier [Axis]: Marlin DTC-LS Midco 2, LLC, First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:MarlinDTC-LSMidco2LLCMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Broadline Retail   Broadline Retail        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 6.50%   6.50%        
Interest Rate 11.03%   11.03%        
Acquisition Date Jul. 19, 2019            
Maturity Date Jul. 01, 2025   Jul. 01, 2025        
Principal/Share Amount $ 18,613,000            
Investments, amortized cost 18,577,000            
Investments, fair value $ 17,865,000            
Investment, Identifier [Axis]: Max Solutions Inc. Common Stock              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:MaxSolutionsIncMember whfcl:MaxSolutionsIncMember          
Investment, Type [Extensible Enumeration] Common Stock [Member] Common Stock [Member] Common Stock [Member] Common Stock [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Paper & Plastic Packaging Products & Materials Paper & Plastic Packaging Products & Materials Paper & Plastic Packaging Products & Materials Paper & Plastic Packaging Products & Materials      
Acquisition Date Sep. 29, 2022 Sep. 29, 2022          
Investment owned shares | shares 4 4 4 4      
Investments, amortized cost $ 400,000 $ 400,000          
Investments, fair value   $ 179,000          
Percent of net assets   0.10%   0.10%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Max Solutions, Inc. First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:MaxSolutionsIncMember          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Paper & Plastic Packaging Products & Materials   Paper & Plastic Packaging Products & Materials      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   7.66%   7.66%      
Interest Rate   13.15%   13.15%      
Acquisition Date   Oct. 07, 2022          
Maturity Date   Sep. 29, 2028   Sep. 29, 2028      
Investments, fair value   $ (17,000)          
Investment, Identifier [Axis]: Max Solutions, Inc. First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:MaxSolutionsIncMember          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Paper & Plastic Packaging Products & Materials   Paper & Plastic Packaging Products & Materials      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:CanadianDollarOfferedRateMember   whfcl:CanadianDollarOfferedRateMember      
Floor   1.00%   1.00%      
Spread Above Index   7.66%   7.66%      
Interest Rate   13.15%   13.15%      
Acquisition Date   Oct. 07, 2022          
Maturity Date   Sep. 29, 2028   Sep. 29, 2028      
Investment, Identifier [Axis]: Max Solutions, Inc. First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:MaxSolutionsIncMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Paper & Plastic Packaging Products & Materials   Paper & Plastic Packaging Products & Materials      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   7.66%   7.66%      
Interest Rate   13.15%   13.15%      
Acquisition Date   Oct. 07, 2022          
Maturity Date   Sep. 29, 2028   Sep. 29, 2028      
Principal/Share Amount   $ 6,589,000          
Investments, amortized cost   6,485,000          
Investments, fair value   $ 6,488,000          
Investment, Identifier [Axis]: Max Solutions, Inc., First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:MaxSolutionsIncMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Paper & Plastic Packaging Products & Materials   Paper & Plastic Packaging Products & Materials        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 8.10%   8.10%        
Interest Rate 12.56%   12.56%        
Acquisition Date Oct. 07, 2022            
Maturity Date Sep. 29, 2028   Sep. 29, 2028        
Principal/Share Amount $ 414,000            
Investments, amortized cost 411,000            
Investments, fair value $ 402,000            
Investment, Identifier [Axis]: Max Solutions, Inc., First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:MaxSolutionsIncMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Paper & Plastic Packaging Products & Materials   Paper & Plastic Packaging Products & Materials        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:CanadianOvernightRepoRateAverageMember   whfcl:CanadianOvernightRepoRateAverageMember        
Floor 1.00%   1.00%        
Spread Above Index 8.10%   8.10%        
Interest Rate 12.56%   12.56%        
Acquisition Date Oct. 07, 2022            
Maturity Date Sep. 29, 2028   Sep. 29, 2028        
Investments, fair value $ (3,000)            
Investment, Identifier [Axis]: Max Solutions, Inc., First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:MaxSolutionsIncMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Paper & Plastic Packaging Products & Materials   Paper & Plastic Packaging Products & Materials        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 8.11%   8.11%        
Interest Rate 12.57%   12.57%        
Acquisition Date Oct. 07, 2022            
Maturity Date Sep. 29, 2028   Sep. 29, 2028        
Principal/Share Amount $ 6,521,000            
Investments, amortized cost 6,439,000            
Investments, fair value $ 6,324,000            
Investment, Identifier [Axis]: Maxor Acquisition, Inc. (d/b/a Maxor National Pharmacy Services, LLC) First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:MaxorAcquisitionInc.Member            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Health Care Services   Health Care Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 6.00%   6.00%        
Interest Rate 10.46%   10.46%        
Acquisition Date Dec. 27, 2024            
Maturity Date Mar. 01, 2029   Mar. 01, 2029        
Principal/Share Amount $ 947,000            
Investments, amortized cost 938,000            
Investments, fair value $ 938,000            
Percent of net assets 0.30%   0.30%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Maxor Acquisition, Inc. First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:MaxorAcquisitionInc.Member whfcl:MaxorAcquisitionInc.Member          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Health Care Services Health Care Services Health Care Services Health Care Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.00% 6.75% 6.00% 6.75%      
Interest Rate 10.46% 12.48% 10.46% 12.48%      
Acquisition Date Apr. 11, 2023 Apr. 11, 2023          
Maturity Date Mar. 01, 2029 Mar. 01, 2029 Mar. 01, 2029 Mar. 01, 2029      
Investments, fair value $ 9,000 $ 9,000          
Investment, Identifier [Axis]: Maxor Acquisition, Inc. First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:MaxorAcquisitionInc.Member whfcl:MaxorAcquisitionInc.Member          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Health Care Services Health Care Services Health Care Services Health Care Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.00% 6.75% 6.00% 6.75%      
Interest Rate 10.46% 12.48% 10.46% 12.48%      
Acquisition Date Apr. 11, 2023 Apr. 11, 2023          
Maturity Date Mar. 01, 2029 Mar. 01, 2029 Mar. 01, 2029 Mar. 01, 2029      
Principal/Share Amount $ 5,002,000 $ 5,053,000          
Investments, amortized cost 4,898,000 4,922,000          
Investments, fair value $ 4,986,000 $ 5,013,000          
Investment, Identifier [Axis]: Medical Device Inc First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:MedicalDeviceIncMember whfcl:MedicalDeviceIncMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Health Care Supplies Health Care Supplies Health Care Supplies Health Care Supplies      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.25% 1.00% 1.25% 1.00%      
Spread Above Index 6.25% 6.50% 6.25% 6.50%      
Interest Rate 10.68% 11.95% 10.68% 11.95%      
Acquisition Date Jul. 27, 2023 Jul. 27, 2023          
Maturity Date Jul. 11, 2029 Jul. 11, 2029 Jul. 11, 2029 Jul. 11, 2029      
Investments, fair value $ 6,000 $ 3,000          
Investment, Identifier [Axis]: Medical Device Inc First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:MedicalDeviceIncMember whfcl:MedicalDeviceIncMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Health Care Supplies Health Care Supplies Health Care Supplies Health Care Supplies      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.25% 1.00% 1.25% 1.00%      
Spread Above Index 6.25% 6.50% 6.25% 6.50%      
Interest Rate 10.68% 11.95% 10.68% 11.95%      
Acquisition Date Jul. 27, 2023 Jul. 27, 2023          
Maturity Date Jul. 11, 2029 Jul. 11, 2029 Jul. 11, 2029 Jul. 11, 2029      
Principal/Share Amount $ 2,633,000 $ 2,660,000          
Investments, amortized cost 2,584,000 2,599,000          
Investments, fair value $ 2,660,000 $ 2,626,000          
Investment, Identifier [Axis]: Merriman Holdings LP (d/b/a Escalent, Inc.) Class A Units              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:MerrimanHoldingsLPMember whfcl:MerrimanHoldingsLPMember          
Investment, Type [Extensible Enumeration] whfcl:ClassAUnitsMember whfcl:ClassAUnitsMember whfcl:ClassAUnitsMember whfcl:ClassAUnitsMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Research & Consulting Services Research & Consulting Services Research & Consulting Services Research & Consulting Services      
Acquisition Date Apr. 07, 2023 Apr. 07, 2023          
Investment owned shares | shares 327 327 327 327      
Investments, amortized cost $ 333,000 $ 333,000          
Investments, fair value $ 368,000 $ 295,000          
Percent of net assets 0.10% 0.10% 0.10% 0.10%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Meta Buyer LLC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:MetaBuyerLLCMember          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Pharmaceuticals [Member]   Pharmaceuticals [Member]      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   6.00%   6.00%      
Interest Rate   11.56%   11.56%      
Acquisition Date   Dec. 16, 2021          
Maturity Date   Nov. 01, 2027   Nov. 01, 2027      
Principal/Share Amount   $ 883,000          
Investments, amortized cost   871,000          
Investments, fair value   $ 883,000          
Investment, Identifier [Axis]: Meta Buyer LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:MetaBuyerLLCMember          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Pharmaceuticals [Member]   Pharmaceuticals [Member]      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   6.00%   6.00%      
Interest Rate   11.53%   11.53%      
Acquisition Date   Dec. 16, 2021          
Maturity Date   Nov. 01, 2027   Nov. 01, 2027      
Principal/Share Amount   $ 1,156,000          
Investments, amortized cost   1,141,000          
Investments, fair value   $ 1,161,000          
Investment, Identifier [Axis]: Meta Buyer LLC First Lien Secured Term Loan One              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:MetaBuyerLLCMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Pharmaceuticals [Member]   Pharmaceuticals [Member]      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:EuroInterbankOfferedRateMember   whfcl:EuroInterbankOfferedRateMember      
Floor   1.00%   1.00%      
Spread Above Index   6.00%   6.00%      
Interest Rate   9.87%   9.87%      
Acquisition Date   Dec. 16, 2021          
Maturity Date   Nov. 01, 2027   Nov. 01, 2027      
Principal/Share Amount   $ 12,163,000          
Investments, amortized cost   13,552,000          
Investments, fair value   $ 13,401,000          
Investment, Identifier [Axis]: Meta Buyer LLC First Lien Secured Term Loan Two              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:MetaBuyerLLCMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Pharmaceuticals [Member]   Pharmaceuticals [Member]      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   6.00%   6.00%      
Interest Rate   11.46%   11.46%      
Acquisition Date   Dec. 16, 2021          
Maturity Date   Nov. 01, 2027   Nov. 01, 2027      
Principal/Share Amount   $ 971,000          
Investments, amortized cost   959,000          
Investments, fair value   $ 971,000          
Investment, Identifier [Axis]: Meta Buyer LLC., First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:MetaBuyerLLCMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Pharmaceuticals [Member]   Pharmaceuticals [Member]        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 6.00%   6.00%        
Interest Rate 10.51%   10.51%        
Acquisition Date Dec. 16, 2021            
Maturity Date Nov. 01, 2027   Nov. 01, 2027        
Principal/Share Amount $ 874,000            
Investments, amortized cost 865,000            
Investments, fair value $ 874,000            
Investment, Identifier [Axis]: Meta Buyer LLC., First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:MetaBuyerLLCMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Pharmaceuticals [Member]   Pharmaceuticals [Member]        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:EuroInterbankOfferedRateMember   whfcl:EuroInterbankOfferedRateMember        
Floor 1.00%   1.00%        
Spread Above Index 6.00%   6.00%        
Interest Rate 8.85%   8.85%        
Acquisition Date Dec. 16, 2021            
Maturity Date Nov. 01, 2027   Nov. 01, 2027        
Principal/Share Amount $ 12,039,000            
Investments, amortized cost 13,449,000            
Investments, fair value $ 12,465,000            
Investment, Identifier [Axis]: Meta Buyer LLC., First Lien Secured Term Loan One              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:MetaBuyerLLCMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Pharmaceuticals [Member]   Pharmaceuticals [Member]        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 6.00%   6.00%        
Interest Rate 10.48%   10.48%        
Acquisition Date Dec. 16, 2021            
Maturity Date Nov. 01, 2027   Nov. 01, 2027        
Principal/Share Amount $ 962,000            
Investments, amortized cost 952,000            
Investments, fair value $ 962,000            
Investment, Identifier [Axis]: Meta Buyer LLC.,First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:MetaBuyerLLCMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Pharmaceuticals [Member]   Pharmaceuticals [Member]        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 6.00%   6.00%        
Interest Rate 10.44%   10.44%        
Acquisition Date Dec. 16, 2021            
Maturity Date Nov. 01, 2027   Nov. 01, 2027        
Principal/Share Amount $ 1,156,000            
Investments, amortized cost 1,145,000            
Investments, fair value $ 1,160,000            
Investment, Identifier [Axis]: Midwest Texas Tea CA, LLC (d/b/a US Petroleum Partners, LLC) First Lien Secured Bridge Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   Midwest Texas Tea CA, LLC [Member]          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredBridgeLoanMember   whfcl:FirstLienSecuredBridgeLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Distributors   Distributors      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   14.00%   14.00%      
Interest Rate   19.46%   19.46%      
Cash interest rate   13.46%   13.46%      
PIK interest rate   6.00%   6.00%      
Acquisition Date   Dec. 22, 2023          
Maturity Date   Dec. 22, 2025   Dec. 22, 2025      
Principal/Share Amount   $ 1,464,000          
Investments, amortized cost   1,420,000          
Investments, fair value   $ 1,420,000          
Percent of net assets   0.40%   0.40%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Midwest Texas Tea CA, LLC (d/b/a US Petroleum Partners, LLC) First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] Midwest Texas Tea CA, LLC [Member] Midwest Texas Tea CA, LLC [Member]          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Distributors Distributors Distributors Distributors      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 7.25% 7.25% 7.25% 7.25%      
Interest Rate 11.71% 12.71% 11.71% 12.71%      
Acquisition Date Dec. 22, 2023 Dec. 22, 2023          
Maturity Date Dec. 22, 2028 Dec. 22, 2028 Dec. 22, 2028 Dec. 22, 2028      
Principal/Share Amount $ 645,000            
Investments, amortized cost 632,000            
Investments, fair value $ 642,000            
Percent of net assets 0.20%   0.20%        
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Midwest Texas Tea CA, LLC (d/b/a US Petroleum Partners, LLC) First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] Midwest Texas Tea CA, LLC [Member] Midwest Texas Tea CA, LLC [Member]          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Distributors Distributors Distributors Distributors      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Base Rate [Member] whfcl:SecuredOvernightFinancingRateSofrMember Base Rate [Member] whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.92% 7.25% 6.92% 7.25%      
Interest Rate 12.39% 12.71% 12.39% 12.71%      
Acquisition Date Dec. 22, 2023 Dec. 22, 2023          
Maturity Date Dec. 22, 2028 Dec. 22, 2028 Dec. 22, 2028 Dec. 22, 2028      
Principal/Share Amount $ 326,000            
Investments, amortized cost 319,000            
Investments, fair value $ 328,000            
Percent of net assets 0.10%   0.10%        
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Midwest Texas Tea CA, LLC (d/b/a US Petroleum Partners, LLC) First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] Midwest Texas Tea CA, LLC [Member] Midwest Texas Tea CA, LLC [Member]          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Distributors Distributors Distributors Distributors      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 7.25% 7.25% 7.25% 7.25%      
Interest Rate 11.71% 12.71% 11.71% 12.71%      
Acquisition Date Dec. 22, 2023 Dec. 22, 2023          
Maturity Date Dec. 22, 2028 Dec. 22, 2028 Dec. 22, 2028 Dec. 22, 2028      
Principal/Share Amount $ 9,443,000 $ 9,490,000          
Investments, amortized cost 9,255,000 9,254,000          
Investments, fair value $ 9,399,000 $ 9,254,000          
Percent of net assets 3.30% 2.90% 3.30% 2.90%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Monarch Collective Holdings, LLC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:MonarchCollectiveHoldingsLlcMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Real Estate Services [Member]   Real Estate Services [Member]        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.50%   1.50%        
Spread Above Index 6.75%   6.75%        
Interest Rate 11.16%   11.16%        
Acquisition Date Jan. 10, 2024            
Maturity Date Jan. 10, 2029   Jan. 10, 2029        
Principal/Share Amount $ 1,596,000            
Investments, amortized cost 1,572,000            
Investments, fair value $ 1,582,000            
Percent of net assets 0.60%   0.60%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Monarch Collective Holdings, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:MonarchCollectiveHoldingsLlcMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Real Estate Services [Member]   Real Estate Services [Member]        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.50%   1.50%        
Spread Above Index 6.75%   6.75%        
Interest Rate 11.08%   11.08%        
Acquisition Date Jan. 10, 2024            
Maturity Date Jan. 10, 2029   Jan. 10, 2029        
Principal/Share Amount $ 9,306,000            
Investments, amortized cost 9,119,000            
Investments, fair value $ 9,223,000            
Percent of net assets 3.20%   3.20%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Motivational CIV, LLC Class B Units              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:MotivationalCIVLLCMember whfcl:MotivationalCIVLLCMember          
Investment, Type [Extensible Enumeration] whfcl:ClassBUnitsMember whfcl:ClassBUnitsMember whfcl:ClassBUnitsMember whfcl:ClassBUnitsMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics      
Acquisition Date Jul. 12, 2021 Jul. 12, 2021          
Investment owned shares | shares 1,250 1,250 1,250 1,250      
Investments, amortized cost $ 1,250,000 $ 1,250,000          
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Motivational Marketing, LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:MotivationalMarketingLLCMember whfcl:MotivationalMarketingLLCMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 8.50% 7.25% 8.50% 7.25%      
Interest Rate 13.00% 12.71% 13.00% 12.71%      
Cash interest rate 11.00% 11.96% 11.00% 11.96%      
PIK interest rate 2.00% 0.75% 2.00% 0.75%      
Acquisition Date Jul. 12, 2021 Jul. 12, 2021          
Maturity Date Jul. 12, 2026 Jul. 12, 2026 Jul. 12, 2026 Jul. 12, 2026      
Principal/Share Amount $ 1,182,000 $ 473,000          
Investments, amortized cost 1,175,000 468,000          
Investments, fair value $ 1,061,000 $ 338,000          
Percent of net assets 0.40% 0.10% 0.40% 0.10%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Motivational Marketing, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:MotivationalMarketingLLCMember whfcl:MotivationalMarketingLLCMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 8.50% 7.25% 8.50% 7.25%      
Interest Rate 12.96% 12.71% 12.96% 12.71%      
Cash interest rate 5.48% 11.96% 5.48% 11.96%      
PIK interest rate 7.48% 0.75% 7.48% 0.75%      
Acquisition Date Jul. 12, 2021 Jul. 12, 2021          
Maturity Date Jul. 12, 2026 Jul. 12, 2026 Jul. 12, 2026 Jul. 12, 2026      
Principal/Share Amount $ 10,510,000 $ 9,989,000          
Investments, amortized cost 10,449,000 9,888,000          
Investments, fair value $ 9,438,000 $ 8,790,000          
Percent of net assets 3.20% 2.80% 3.20% 2.80%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: NNA Services, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:NNAServicesLLCMember whfcl:NNAServicesLLCMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Diversified Support Services Diversified Support Services Diversified Support Services Diversified Support Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 7.25% 6.75% 7.25% 6.75%      
Interest Rate 11.73% 12.25% 11.73% 12.25%      
Acquisition Date Aug. 27, 2021 Aug. 27, 2021          
Maturity Date Aug. 27, 2026 Aug. 27, 2026 Aug. 27, 2026 Aug. 27, 2026      
Principal/Share Amount $ 9,125,000 $ 9,417,000          
Investments, amortized cost 9,087,000 9,354,000          
Investments, fair value $ 8,941,000 $ 9,293,000          
Percent of net assets 3.10% 2.90% 3.10% 2.90%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: NPAV Lessor Corp., First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:NPAVLessorCorp.Member whfcl:NPAVLessorCorp.Member          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Real Estate Services [Member] Real Estate Services [Member] Real Estate Services [Member] Real Estate Services [Member]      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.50% 6.50% 6.50% 6.50%      
Interest Rate 10.96% 11.96% 10.96% 11.96%      
Acquisition Date Mar. 01, 2022 Mar. 01, 2022          
Maturity Date Jan. 21, 2027 Jan. 21, 2027 Jan. 21, 2027 Jan. 21, 2027      
Principal/Share Amount $ 725,000 $ 725,000          
Investments, amortized cost 719,000 716,000          
Investments, fair value $ 660,000 $ 647,000          
Investment, Identifier [Axis]: NPAV Lessor Corp., First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:NPAVLessorCorp.Member whfcl:NPAVLessorCorp.Member          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Real Estate Services [Member] Real Estate Services [Member] Real Estate Services [Member] Real Estate Services [Member]      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.50% 6.50% 6.50% 6.50%      
Interest Rate 10.96% 11.96% 10.96% 11.96%      
Acquisition Date Mar. 01, 2022 Mar. 01, 2022          
Maturity Date Jan. 21, 2027 Jan. 21, 2027 Jan. 21, 2027 Jan. 21, 2027      
Principal/Share Amount $ 6,502,000 $ 7,510,000          
Investments, amortized cost 6,448,000 7,418,000          
Investments, fair value $ 5,918,000 $ 6,706,000          
Investment, Identifier [Axis]: Naviga Inc First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:NavigaIncMember whfcl:NavigaIncMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Application Software Application Software Application Software Application Software      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Base Rate [Member] Base Rate [Member] Base Rate [Member] Base Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.84% 6.84% 6.84% 6.84%      
Interest Rate 12.78% 12.78% 12.78% 12.78%      
Acquisition Date Jun. 14, 2019 Jun. 14, 2019          
Maturity Date Jun. 28, 2024 Feb. 27, 2024 Jun. 28, 2024 Feb. 27, 2024      
Principal/Share Amount $ 301,000 $ 271,000          
Investments, amortized cost 301,000 271,000          
Investments, fair value $ 169,000 $ 268,000          
Percent of net assets 0.10% 0.10% 0.10% 0.10%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Naviga Inc First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:NavigaIncMember whfcl:NavigaIncMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Application Software Application Software Application Software Application Software      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 7.00% 7.00% 7.00% 7.00%      
Interest Rate 12.40% 12.45% 12.40% 12.45%      
Acquisition Date Jun. 14, 2019 Jun. 14, 2019          
Maturity Date Jun. 28, 2024 Feb. 27, 2024 Jun. 28, 2024 Feb. 27, 2024      
Principal/Share Amount $ 3,140,000 $ 3,148,000          
Investments, amortized cost 3,140,000 3,148,000          
Investments, fair value $ 1,763,000 $ 3,113,000          
Percent of net assets 0.60% 1.00% 0.60% 1.00%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: New American Crafts Holdings, LLC Class A Units              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:NewAmericanCraftsHoldingsLlcMember whfcl:NewAmericanCraftsHoldingsLlcClassaUnitsMember          
Investment, Type [Extensible Enumeration] whfcl:ClassAUnitsMember whfcl:ClassAUnitsMember whfcl:ClassAUnitsMember whfcl:ClassAUnitsMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Leisure Products Leisure Products Leisure Products Leisure Products      
Acquisition Date Mar. 16, 2023 Mar. 16, 2023          
Investment owned shares | shares 1 1 1 1      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: PANOS Brands, LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] Panos Brands, Llc [Member]            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Packaged Foods & Meats   Packaged Foods & Meats        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 5.75%   5.75%        
Interest Rate 10.15%   10.15%        
Acquisition Date May 14, 2024            
Maturity Date May 14, 2029   May 14, 2029        
Principal/Share Amount $ 27,000            
Investments, amortized cost 27,000            
Investments, fair value $ 33,000            
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: PANOS Brands, LLC First Lien Secured Revolving Loan, One 05/14/29              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] Panos Brands, Llc [Member]            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services   IT Consulting And Other Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 5.75%   5.75%        
Interest Rate 10.15%   10.15%        
Acquisition Date Jun. 14, 2024            
Maturity Date May 14, 2029   May 14, 2029        
Principal/Share Amount $ 30,000            
Investments, amortized cost 30,000            
Investments, fair value $ 36,000            
Investment, Identifier [Axis]: PANOS Brands, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] Panos Brands, Llc [Member]            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services   IT Consulting And Other Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 5.75%   5.75%        
Interest Rate 10.13%   10.13%        
Acquisition Date Jun. 14, 2024            
Maturity Date May 14, 2029   May 14, 2029        
Principal/Share Amount $ 4,520,000            
Investments, amortized cost 4,441,000            
Investments, fair value $ 4,505,000            
Investment, Identifier [Axis]: PANOS Brands, LLC First Lien Secured Term Loan, One 05/14/29              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] Panos Brands, Llc [Member]            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Packaged Foods & Meats   Packaged Foods & Meats        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 5.75%   5.75%        
Interest Rate 10.13%   10.13%        
Acquisition Date May 14, 2024            
Maturity Date May 14, 2029   May 14, 2029        
Principal/Share Amount $ 4,068,000            
Investments, amortized cost 3,997,000            
Investments, fair value $ 4,054,000            
Percent of net assets 1.40%   1.40%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: PFB Holdco, Inc Class A Units              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:PfbHoldingCompanyLlcMember          
Investment, Type [Extensible Enumeration]   whfcl:ClassAUnitsMember   whfcl:ClassAUnitsMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Building Products   Building Products      
Acquisition Date   Dec. 17, 2021          
Investment owned shares | shares   1   1      
Investments, amortized cost   $ 423,000          
Investments, fair value   $ 1,053,000          
Percent of net assets   0.30%   0.30%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: PFB Holding Company, LLC Class A Units              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:PFBHoldcoIncMember            
Investment, Type [Extensible Enumeration] whfcl:ClassAUnitsMember   whfcl:ClassAUnitsMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Building Products   Building Products        
Acquisition Date Dec. 17, 2021            
Investment owned shares | shares 1   1        
Investments, amortized cost $ 24,000            
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: PG Dental New Jersey Parent, LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:PGDentalNewJerseyParentLLCMember          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Health Care Services   Health Care Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Base Rate [Member]   Base Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   7.00%   7.00%      
Interest Rate   13.98%   13.98%      
Cash interest rate   11.73%   11.73%      
PIK interest rate   2.25%   2.25%      
Acquisition Date   Nov. 25, 2020          
Maturity Date   Nov. 25, 2025   Nov. 25, 2025      
Principal/Share Amount   $ 704,000          
Investments, amortized cost   698,000          
Investments, fair value   $ 704,000          
Percent of net assets   0.20%   0.20%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: PG Dental New Jersey Parent, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:PGDentalNewJerseyParentLLCMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Health Care Services   Health Care Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   7.50%   7.50%      
Interest Rate   12.96%   12.96%      
Cash interest rate   10.71%   10.71%      
PIK interest rate   2.25%   2.25%      
Acquisition Date   Nov. 25, 2020          
Maturity Date   Nov. 25, 2025   Nov. 25, 2025      
Principal/Share Amount   $ 6,400,000          
Investments, amortized cost   6,348,000          
Investments, fair value   $ 6,400,000          
Percent of net assets   2.00%   2.00%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: PLTFRM Companies, LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:PltfrmCompaniesLlcMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Advertising   Advertising        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 3.00%   3.00%        
Spread Above Index 9.00%   9.00%        
Interest Rate 13.34%   13.34%        
Cash interest rate 12.34%   12.34%        
PIK interest rate 1.00%   1.00%        
Acquisition Date Jan. 29, 2024            
Maturity Date Jan. 29, 2029   Jan. 29, 2029        
Principal/Share Amount $ 889,000            
Investments, amortized cost 867,000            
Investments, fair value $ 916,000            
Percent of net assets 0.30%   0.30%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: PLTFRM Companies, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:PltfrmCompaniesLlcMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Advertising   Advertising        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 3.00%   3.00%        
Spread Above Index 9.00%   9.00%        
Interest Rate 13.36%   13.36%        
Cash interest rate 12.36%   12.36%        
PIK interest rate 1.00%   1.00%        
Acquisition Date Jan. 29, 2024            
Maturity Date Jan. 29, 2029   Jan. 29, 2029        
Principal/Share Amount $ 7,950,000            
Investments, amortized cost 7,757,000            
Investments, fair value $ 8,188,000            
Percent of net assets 3.00%   3.00%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Patagonia Holdco LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:PatagoniaHoldcoLLCMember whfcl:PatagoniaHoldcoLLCMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Integrated Telecommunication Services Integrated Telecommunication Services Integrated Telecommunication Services Integrated Telecommunication Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 0.50% 0.50% 0.50% 0.50%      
Spread Above Index 5.75% 5.75% 5.75% 5.75%      
Interest Rate 10.27% 11.12% 10.27% 11.12%      
Acquisition Date Aug. 05, 2022 Aug. 05, 2022          
Maturity Date Aug. 01, 2029 Aug. 01, 2029 Aug. 01, 2029 Aug. 01, 2029      
Principal/Share Amount $ 14,296,000 $ 14,442,000          
Investments, amortized cost 12,602,000 12,357,000          
Investments, fair value $ 13,135,000 $ 13,191,000          
Percent of net assets 4.60% 4.20% 4.60% 4.20%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Pavement Partners Interco, LLC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:PavementPartnersIntercoLLCMember whfcl:PavementPartnersIntercoLLCMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Construction & Engineering Construction & Engineering Construction & Engineering Construction & Engineering      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.75% 6.75% 6.75% 6.75%      
Interest Rate 11.23% 12.42% 11.23% 12.42%      
Acquisition Date Mar. 17, 2023 Mar. 17, 2023          
Maturity Date Feb. 07, 2028 Feb. 07, 2028 Feb. 07, 2028 Feb. 07, 2028      
Principal/Share Amount $ 569,000 $ 575,000          
Investments, amortized cost 558,000 560,000          
Investments, fair value $ 569,000 $ 569,000          
Investment, Identifier [Axis]: Pavement Partners Interco, LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:PavementPartnersIntercoLLCMember whfcl:PavementPartnersIntercoLLCMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Construction & Engineering Construction & Engineering Construction & Engineering Construction & Engineering      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.75% 6.75% 6.75% 6.75%      
Interest Rate 11.23% 12.42% 11.23% 12.42%      
Acquisition Date Mar. 17, 2023 Mar. 17, 2023          
Maturity Date Feb. 07, 2028 Feb. 07, 2028 Feb. 07, 2028 Feb. 07, 2028      
Principal/Share Amount $ 338,000            
Investments, amortized cost 331,000            
Investments, fair value $ 341,000 $ 5,000          
Investment, Identifier [Axis]: Pavement Partners Interco, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:PavementPartnersIntercoLLCMember whfcl:PavementPartnersIntercoLLCMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Construction & Engineering Construction & Engineering Construction & Engineering Construction & Engineering      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.75% 6.75% 6.75% 6.75%      
Interest Rate 11.23% 12.27% 11.23% 12.27%      
Acquisition Date Mar. 17, 2023 Mar. 17, 2023          
Maturity Date Feb. 07, 2028 Feb. 07, 2028 Feb. 07, 2028 Feb. 07, 2028      
Principal/Share Amount $ 5,117,000 $ 4,455,000          
Investments, amortized cost 5,015,000 4,344,000          
Investments, fair value $ 5,111,000 $ 4,405,000          
Investment, Identifier [Axis]: Pennsylvania Machine Works, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:PennsylvaniaMachineWorksLLCMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Industrial Machinery & Supplies & Components   Industrial Machinery & Supplies & Components      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   6.00%   6.00%      
Interest Rate   11.61%   11.61%      
Acquisition Date   Mar. 25, 2022          
Maturity Date   Mar. 08, 2027   Mar. 08, 2027      
Principal/Share Amount   $ 6,561,000          
Investments, amortized cost   6,498,000          
Investments, fair value   $ 6,561,000          
Investment, Identifier [Axis]: Pirtek Holdco, LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:PirtekHoldcoLLCMember whfcl:PirtekHoldcoLLCMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Diversified Support Services Diversified Support Services Diversified Support Services Diversified Support Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 5.50% 5.75% 5.50% 5.75%      
Interest Rate 9.95% 11.20% 9.95% 11.20%      
Acquisition Date Oct. 31, 2023 Oct. 31, 2023          
Maturity Date Oct. 26, 2028 Oct. 26, 2028 Oct. 26, 2028 Oct. 26, 2028      
Investments, fair value $ 17,000            
Investment, Identifier [Axis]: Pirtek Holdco, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:PirtekHoldcoLLCMember whfcl:PirtekHoldcoLLCMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Diversified Support Services Diversified Support Services Diversified Support Services Diversified Support Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 5.50% 5.75% 5.50% 5.75%      
Interest Rate 9.95% 11.20% 9.95% 11.20%      
Acquisition Date Oct. 31, 2023 Oct. 31, 2023          
Maturity Date Oct. 26, 2028 Oct. 26, 2028 Oct. 26, 2028 Oct. 26, 2028      
Principal/Share Amount $ 7,425,000 $ 7,500,000          
Investments, amortized cost 7,298,000 7,337,000          
Investments, fair value $ 7,425,000 $ 7,337,000          
Investment, Identifier [Axis]: PlayMonster LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:PlaymonsterGroupLLCMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investments, fair value   $ 1,363,000         2,977,000
Investment, Identifier [Axis]: Playmonster Group Equity, Inc Common Stock              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled affiliate company investments Non-controlled affiliate company investments Non-controlled affiliate company investments Non-controlled affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:PlaymonsterGroupEquityIncMember whfcl:PlaymonsterGroupEquityIncMember          
Investment, Type [Extensible Enumeration] Common Stock [Member] Common Stock [Member] Common Stock [Member] Common Stock [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Leisure Products Leisure Products Leisure Products Leisure Products      
Acquisition Date Jan. 24, 2022 Jan. 24, 2022          
Investment owned shares | shares 72 72 72 72      
Investments, amortized cost $ 460,000 $ 460,000          
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Playmonster Group Equity, Inc. Preferred Stock              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled affiliate company investments Non-controlled affiliate company investments Non-controlled affiliate company investments Non-controlled affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:PlaymonsterGroupEquityIncMember whfcl:PlaymonsterGroupEquityIncMember          
Investment, Type [Extensible Enumeration] us-gaap:PreferredStockMember us-gaap:PreferredStockMember us-gaap:PreferredStockMember us-gaap:PreferredStockMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Leisure Products Leisure Products Leisure Products Leisure Products      
Interest Rate 14.00% 14.00% 14.00% 14.00%      
PIK interest rate 14.00% 14.00% 14.00% 14.00%      
Acquisition Date Jan. 24, 2022 Jan. 24, 2022          
Investment owned shares | shares 36 36 36 36      
Investments, amortized cost $ 3,600,000 $ 3,600,000          
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] true true true true      
Investment, Identifier [Axis]: Playmonster Group LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled affiliate company investments Non-controlled affiliate company investments Non-controlled affiliate company investments Non-controlled affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:PlaymonsterGroupLLCMember whfcl:PlayMonsterLLCMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Leisure Products Leisure Products Leisure Products Leisure Products      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 9.00% 9.00% 9.00% 9.00%      
PIK interest rate 13.74% 14.53% 13.74% 14.53%      
Acquisition Date Jun. 07, 2021 Jun. 07, 2021          
Maturity Date Jun. 08, 2026 Jun. 08, 2026 Jun. 08, 2026 Jun. 08, 2026      
Principal/Share Amount $ 4,890,000 $ 4,232,000          
Investments, amortized cost 3,661,000 3,661,000          
Investments, fair value $ 1,635,000 $ 1,363,000          
Percent of net assets 0.60% 0.40% 0.60% 0.40%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Playmonster Group LLC, Priority First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled affiliate company investments Non-controlled affiliate company investments Non-controlled affiliate company investments Non-controlled affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:PlaymonsterGroupLLCMember whfcl:PlayMonsterLLCMember          
Investment, Type [Extensible Enumeration] whfcl:PriorityFirstLienSecuredTermLoanMember whfcl:PriorityFirstLienSecuredTermLoanMember whfcl:PriorityFirstLienSecuredTermLoanMember whfcl:PriorityFirstLienSecuredTermLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Leisure Products Leisure Products Leisure Products Leisure Products      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.75% 6.75% 6.75% 6.75%      
PIK interest rate 11.41% 12.37% 11.41% 12.37%      
Acquisition Date Dec. 09, 2022 Dec. 09, 2022          
Maturity Date Jun. 08, 2026 Jun. 08, 2026 Jun. 08, 2026 Jun. 08, 2026      
Principal/Share Amount $ 1,289,000 $ 1,140,000          
Investments, amortized cost 1,275,000 1,118,000          
Investments, fair value $ 1,172,000 $ 1,015,000         176,000
Percent of net assets 0.40% 0.30% 0.40% 0.30%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Potpourri Group, Inc First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:PotpourriGroupIncMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Broadline Retail   Broadline Retail      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.50%   1.50%      
Spread Above Index   8.25%   8.25%      
Interest Rate   13.71%   13.71%      
Acquisition Date   Jul. 03, 2019          
Maturity Date   Jul. 03, 2024   Jul. 03, 2024      
Principal/Share Amount   $ 13,799,000          
Investments, amortized cost   13,767,000          
Investments, fair value   $ 13,799,000          
Percent of net assets   4.40%   4.40%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Poultry Holdings LLC., First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:PoultryHoldingsLLCMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Packaged Foods & Meats   Packaged Foods & Meats      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   6.50%   6.50%      
Acquisition Date   Oct. 21, 2019          
Maturity Date   Jun. 28, 2025   Jun. 28, 2025      
Principal/Share Amount   $ 6,939,000          
Investments, amortized cost   6,904,000          
Investments, fair value   $ 6,904,000          
Investment, Identifier [Axis]: Power Service Group CR Acquisition Inc First Lien Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:PowerServiceGroupCrAcquisitionIncMember whfcl:PowerServiceGroupCrAcquisitionIncMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Heavy Electrical Equipment Heavy Electrical Equipment Heavy Electrical Equipment Heavy Electrical Equipment      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.75% 6.75% 6.75% 6.75%      
Interest Rate 11.23% 12.25% 11.23% 12.25%      
Acquisition Date Jul. 11, 2022 Jul. 11, 2022          
Maturity Date Jun. 25, 2026 Jun. 25, 2026 Jun. 25, 2026 Jun. 25, 2026      
Principal/Share Amount $ 1,340,000 $ 1,356,000          
Investments, amortized cost 1,329,000 1,336,000          
Investments, fair value $ 1,354,000 $ 1,353,000          
Percent of net assets 0.50% 0.40% 0.50% 0.40%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Power Service Group CR Acquisition Inc First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:PowerServiceGroupCrAcquisitionIncMember whfcl:PowerServiceGroupCrAcquisitionIncMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Heavy Electrical Equipment Heavy Electrical Equipment Heavy Electrical Equipment Heavy Electrical Equipment      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.75% 6.75% 6.75% 6.75%      
Interest Rate 11.23% 12.25% 11.23% 12.25%      
Acquisition Date Jun. 25, 2021 Jun. 25, 2021          
Maturity Date Jun. 25, 2026 Jun. 25, 2026 Jun. 25, 2026 Jun. 25, 2026      
Principal/Share Amount $ 8,697,000 $ 8,804,000          
Investments, amortized cost 8,642,000 8,712,000          
Investments, fair value $ 8,784,000 $ 8,782,000          
Percent of net assets 3.10% 2.80% 3.10% 2.80%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Pressurized Holdings, LLC Common Units              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled affiliate company investments Non-controlled affiliate company investments Non-controlled affiliate company investments Non-controlled affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] Pressurized Holdings, LLC [Member] Pressurized Holdings, LLC [Member]          
Investment, Type [Extensible Enumeration] whfcl:CommonUnitsMember whfcl:CommonUnitsMember whfcl:CommonUnitsMember whfcl:CommonUnitsMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Diversified Chemicals Diversified Chemicals Diversified Chemicals Diversified Chemicals      
Acquisition Date Mar. 16, 2023 Mar. 16, 2023          
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Pressurized Holdings, LLC Preferred Units              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled affiliate company investments Non-controlled affiliate company investments Non-controlled affiliate company investments Non-controlled affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] Pressurized Holdings, LLC [Member] Pressurized Holdings, LLC [Member]          
Investment, Type [Extensible Enumeration] Preferred Units [Member] Preferred Units [Member] Preferred Units [Member] Preferred Units [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Diversified Chemicals Diversified Chemicals Diversified Chemicals Diversified Chemicals      
Interest Rate 14.00%   14.00%        
PIK interest rate 14.00% 14.00% 14.00% 14.00%      
Acquisition Date Mar. 16, 2023 Mar. 16, 2023          
Investments, amortized cost $ 4,537,000 $ 4,537,000          
Investments, fair value $ 1,657,000 $ 251,000          
Percent of net assets 0.60% 0.10% 0.60% 0.10%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] true true true true      
Investment, Identifier [Axis]: Principal Lighting Group, LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:PrincipalLightingGroupLlcMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Electronic Equipment & Instruments   Electronic Equipment & Instruments        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 5.25%   5.25%        
Interest Rate 9.81%   9.81%        
Acquisition Date Dec. 03, 2024            
Maturity Date Nov. 04, 2030   Nov. 04, 2030        
Investment, Identifier [Axis]: Principal Lighting Group, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:PrincipalLightingGroupLlcMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Electronic Equipment & Instruments   Electronic Equipment & Instruments        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 5.25%   5.25%        
Interest Rate 9.81%   9.81%        
Acquisition Date Dec. 03, 2024            
Maturity Date Nov. 04, 2030   Nov. 04, 2030        
Principal/Share Amount $ 3,531,000            
Investments, amortized cost 3,479,000            
Investments, fair value $ 3,479,000            
Investment, Identifier [Axis]: Project Castle, Inc First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:ProjectCastleIncMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Industrial Machinery & Supplies & Components   Industrial Machinery & Supplies & Components      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   0.50%   0.50%      
Spread Above Index   5.50%   5.50%      
Interest Rate   10.89%   10.89%      
Acquisition Date   Jun. 09, 2022          
Maturity Date   Jun. 01, 2029   Jun. 01, 2029      
Principal/Share Amount   $ 6,027,000          
Investments, amortized cost   5,536,000          
Investments, fair value   $ 5,364,000          
Percent of net assets   1.70%   1.70%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Quest Events LLC, First Lien Secured Term Loan, 09/30/26              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:QuestEventsLLCMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Diversified Support Services   Diversified Support Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 2.00%   2.00%        
Spread Above Index 7.00%   7.00%        
Interest Rate 11.59%   11.59%        
Acquisition Date Jul. 19, 2019            
Maturity Date Sep. 30, 2026   Sep. 30, 2026        
Principal/Share Amount $ 11,592,000            
Investments, amortized cost 11,563,000            
Investments, fair value $ 11,592,000            
Investment, Identifier [Axis]: Quest Events, LLC Common Units              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:QuestEventsLLCMember whfcl:QuestEventsLLCMember          
Investment, Type [Extensible Enumeration] whfcl:CommonUnitsMember whfcl:CommonUnitsMember whfcl:CommonUnitsMember whfcl:CommonUnitsMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Diversified Support Services Diversified Support Services Diversified Support Services Diversified Support Services      
Acquisition Date Dec. 28, 2018 Dec. 28, 2018          
Investment owned shares | shares 333 317 333 317      
Investments, amortized cost $ 376,000 $ 360,000          
Investments, fair value $ 149,000 $ 305,000          
Percent of net assets 0.10% 0.10% 0.10% 0.10%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Quest Events, LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:QuestEventsLLCMember whfcl:QuestEventsLLCMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Diversified Support Services Diversified Support Services Diversified Support Services Diversified Support Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 2.00% 2.00% 2.00% 2.00%      
Spread Above Index 7.00% 7.25% 7.00% 7.25%      
Interest Rate 11.59% 12.86% 11.59% 12.86%      
Acquisition Date Jul. 19, 2019 Jul. 19, 2019          
Maturity Date Sep. 30, 2026 Sep. 30, 2026 Sep. 30, 2026 Sep. 30, 2026      
Principal/Share Amount $ 247,000 $ 247,000          
Investments, amortized cost 246,000 246,000          
Investments, fair value $ 248,000 $ 242,000          
Investment, Identifier [Axis]: Quest Events, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:QuestEventsLLCMember whfcl:QuestEventsLLCMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Diversified Support Services Diversified Support Services Diversified Support Services Diversified Support Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] whfcl:SecuredOvernightFinancingRateSofrMember Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 2.00% 1.00% 2.00%      
Spread Above Index 6.50% 7.25% 6.50% 7.25%      
Interest Rate 10.90% 12.86% 10.90% 12.86%      
Acquisition Date Sep. 13, 2024 Jul. 19, 2019          
Maturity Date Sep. 30, 2026 Sep. 30, 2026 Sep. 30, 2026 Sep. 30, 2026      
Principal/Share Amount $ 480,000 $ 11,709,000          
Investments, amortized cost 472,000 11,663,000          
Investments, fair value $ 473,000 $ 11,557,000          
Percent of net assets 0.20%   0.20%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: RCKC Acquisitions LLC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:RCKCAcquisitionsLLCMember whfcl:RCKCAcquisitionsLLCMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 5.25% 6.00% 5.25% 6.00%      
Interest Rate 9.99% 11.53% 9.99% 11.53%      
Acquisition Date Jan. 27, 2021 Jan. 27, 2021          
Maturity Date Jan. 02, 2029 Dec. 31, 2026 Jan. 02, 2029 Dec. 31, 2026      
Principal/Share Amount $ 2,946,000 $ 2,976,000          
Investments, amortized cost 2,922,000 2,945,000          
Investments, fair value $ 2,946,000 $ 2,965,000          
Investment, Identifier [Axis]: RCKC Acquisitions LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:RCKCAcquisitionsLLCMember whfcl:RCKCAcquisitionsLLCMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 5.25% 6.00% 5.25% 6.00%      
Interest Rate 9.73% 11.50% 9.73% 11.50%      
Acquisition Date Jan. 27, 2021 Jan. 27, 2021          
Maturity Date Jan. 02, 2029 Dec. 31, 2026 Jan. 02, 2029 Dec. 31, 2026      
Principal/Share Amount $ 10,923,000 $ 11,036,000          
Investments, amortized cost 10,839,000 10,925,000          
Investments, fair value $ 10,923,000 $ 10,993,000          
Investment, Identifier [Axis]: RCKC Acquisitions LLC, First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:RCKCAcquisitionsLLCMember whfcl:RCKCAcquisitionsLLCMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 5.25% 6.00% 5.25% 6.00%      
Interest Rate 9.99% 11.58% 9.99% 11.58%      
Acquisition Date Jan. 27, 2021 Jan. 27, 2021          
Maturity Date Jan. 02, 2029 Dec. 31, 2026 Jan. 02, 2029 Dec. 31, 2026      
Principal/Share Amount   $ 107,000          
Investments, amortized cost   106,000          
Investments, fair value $ 11,000 $ 114,000          
Investment, Identifier [Axis]: RLJ Pro-Vac, Inc. First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:RLJPro-VacInc.Member            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Environmental & Facilities Services   Environmental & Facilities Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 6.25%   6.25%        
Interest Rate 10.71%   10.71%        
Acquisition Date Jan. 23, 2024            
Maturity Date Dec. 31, 2026   Dec. 31, 2026        
Principal/Share Amount $ 6,659,000            
Investments, amortized cost 6,566,000            
Investments, fair value $ 6,637,000            
Investment, Identifier [Axis]: Ribbon Communications Operating Company, Inc. (d/b/a Ribbon Communications Inc.) First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] Ribbon Communications Operating Company, Inc. [Member]            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Systems Software   Systems Software        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 6.25%   6.25%        
Interest Rate 10.59%   10.59%        
Acquisition Date Jun. 21, 2024            
Maturity Date Jun. 21, 2029   Jun. 21, 2029        
Investments, fair value $ 9,000            
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Ribbon Communications Operating Company, Inc. (d/b/a Ribbon Communications Inc.) First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] Ribbon Communications Operating Company, Inc. [Member]            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Systems Software   Systems Software        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 6.25%   6.25%        
Interest Rate 10.59%   10.59%        
Acquisition Date Jun. 21, 2024            
Maturity Date Jun. 21, 2029   Jun. 21, 2029        
Principal/Share Amount $ 8,756,000            
Investments, amortized cost 8,600,000            
Investments, fair value $ 8,692,000            
Percent of net assets 3.00%   3.00%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Ross-Simons Topco, LP Preferred Units              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:Ross-SimonsTopcoLPMember whfcl:Ross-SimonsTopcoLPMember          
Investment, Type [Extensible Enumeration] Preferred Units [Member] Preferred Units [Member] Preferred Units [Member] Preferred Units [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Broadline Retail Broadline Retail Broadline Retail Broadline Retail      
Interest Rate 8.00% 8.00% 8.00% 8.00%      
PIK interest rate 8.00% 8.00% 8.00% 8.00%      
Acquisition Date Dec. 04, 2020 Dec. 04, 2020          
Investment owned shares | shares 600 600 600 600      
Investments, amortized cost $ 514,000 $ 514,000          
Investments, fair value $ 756,000 $ 832,000          
Percent of net assets 0.30% 0.30% 0.30% 0.30%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: SFS Global Holding Company Warrants              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:SFSGlobalHoldingCompanyMember          
Investment, Type [Extensible Enumeration]   Warrant [Member]   Warrant [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Other Diversified Financial Services   Other Diversified Financial Services      
Acquisition Date   Jun. 28, 2018          
Maturity Date   Dec. 28, 2025   Dec. 28, 2025      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Salon Republic Holdings, LLC (d/b/a Salon Republic, LLC) First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:SalonRepublicHoldingsLlcMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Specialized Consumer Services   Specialized Consumer Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 8.00%   8.00%        
Interest Rate 12.46%   12.46%        
Acquisition Date Dec. 02, 2022            
Maturity Date Dec. 02, 2027   Dec. 02, 2027        
Principal/Share Amount $ 1,669,000            
Investments, amortized cost 1,641,000            
Investments, fair value $ 1,672,000            
Percent of net assets 0.60%   0.60%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Salon Republic Holdings, LLC (d/b/a Salon Republic, LLC) First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:SalonRepublicHoldingsLlcMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Specialized Consumer Services   Specialized Consumer Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 8.00%   8.00%        
Interest Rate 12.46%   12.46%        
Acquisition Date Dec. 02, 2022            
Maturity Date Dec. 02, 2027   Dec. 02, 2027        
Investments, fair value $ 13,000            
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Salon Republic Holdings, LLC (d/b/a Salon Republic, LLC) First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:SalonRepublicHoldingsLlcMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Specialized Consumer Services   Specialized Consumer Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 8.00%   8.00%        
Interest Rate 12.46%   12.46%        
Acquisition Date Dec. 02, 2022            
Maturity Date Dec. 02, 2027   Dec. 02, 2027        
Principal/Share Amount $ 5,076,000            
Investments, amortized cost 4,988,000            
Investments, fair value $ 5,063,000            
Percent of net assets 1.80%   1.80%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Salon Republic Holdings, LLC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:SalonRepublicHoldingsLlcMember          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Research & Consulting Services   Research & Consulting Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   7.50%   7.50%      
Interest Rate   12.96%   12.96%      
Acquisition Date   Dec. 02, 2022          
Maturity Date   Dec. 02, 2027   Dec. 02, 2027      
Principal/Share Amount   $ 741,000          
Investments, amortized cost   729,000          
Investments, fair value   $ 745,000          
Percent of net assets   0.20%   0.20%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Salon Republic Holdings, LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:SalonRepublicHoldingsLlcMember          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Research & Consulting Services   Research & Consulting Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Spread Above Index   7.50%   7.50%      
Interest Rate   12.96%   12.96%      
Acquisition Date   Dec. 02, 2022          
Maturity Date   Dec. 02, 2027   Dec. 02, 2027      
Principal/Share Amount   $ 251,000          
Investments, amortized cost   245,000          
Investments, fair value   $ 258,000          
Percent of net assets   0.10%   0.10%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Salon Republic Holdings, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:SalonRepublicHoldingsLlcMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Research & Consulting Services   Research & Consulting Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   7.50%   7.50%      
Interest Rate   12.96%   12.96%      
Acquisition Date   Dec. 02, 2022          
Maturity Date   Dec. 02, 2027   Dec. 02, 2027      
Principal/Share Amount   $ 5,121,000          
Investments, amortized cost   5,001,000          
Investments, fair value   $ 5,077,000          
Percent of net assets   1.60%   1.60%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Salon Republic Investments LLC Common Stock              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:SalonRepublicInvestmentsLlcMember          
Investment, Type [Extensible Enumeration]   Common Stock [Member]   Common Stock [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Specialized Consumer Services   Specialized Consumer Services      
Acquisition Date   Dec. 02, 2022          
Investment owned shares | shares   400   400      
Investments, amortized cost   $ 400,000          
Investments, fair value   $ 241,000          
Percent of net assets   0.10%   0.10%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Salon Republic Investments LLC Preferred Stock              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:SalonRepublicInvestmentsLlcMember          
Investment, Type [Extensible Enumeration]   us-gaap:PreferredStockMember   us-gaap:PreferredStockMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Specialized Consumer Services   Specialized Consumer Services      
PIK interest rate   8.00%   8.00%      
Acquisition Date   Dec. 02, 2022          
Investment owned shares | shares   200   200      
Investments, amortized cost   $ 200,000          
Investments, fair value   $ 218,000          
Percent of net assets   0.10%   0.10%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   true   true      
Investment, Identifier [Axis]: Salon Republic Investments LLC, Common Stock              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:SalonRepublicInvestmentsLlcMember            
Investment, Type [Extensible Enumeration] Common Stock [Member]   Common Stock [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Real Estate Operating Companies   Real Estate Operating Companies        
Acquisition Date Dec. 02, 2022            
Investment owned shares | shares 400   400        
Investments, amortized cost $ 400,000            
Investments, fair value $ 132,000            
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Salon Republic Investments LLC, Preferred Stock              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:SalonRepublicInvestmentsLlcMember            
Investment, Type [Extensible Enumeration] us-gaap:PreferredStockMember   us-gaap:PreferredStockMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Real Estate Operating Companies   Real Estate Operating Companies        
Interest Rate 8.00%   8.00%        
PIK interest rate 8.00%   8.00%        
Acquisition Date Dec. 02, 2022            
Investment owned shares | shares 200   200        
Investments, amortized cost $ 200,000            
Investments, fair value $ 242,000            
Percent of net assets 0.10%   0.10%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] true   true        
Investment, Identifier [Axis]: Sigue Corporation Warrants              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:SigueCorporationMember          
Investment, Type [Extensible Enumeration]   Warrant [Member]   Warrant [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Other Diversified Financial Services   Other Diversified Financial Services      
Acquisition Date   Jun. 28, 2018          
Maturity Date   Dec. 28, 2025   Dec. 28, 2025      
Investment owned shares | shares   22   22      
Investments, amortized cost   $ 2,890,000          
Investments, fair value   $ 3,472,000          
Percent of net assets   1.10%   1.10%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Sleep OpCo LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:SleepOpCoLLCMember whfcl:SleepOpCoLLCMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Home Furnishings Home Furnishings Home Furnishings Home Furnishings      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.50% 6.50% 6.50% 6.50%      
Interest Rate 11.28% 12.07% 11.28% 12.07%      
Acquisition Date Oct. 12, 2021 Oct. 12, 2021          
Maturity Date Oct. 12, 2026 Oct. 12, 2026 Oct. 12, 2026 Oct. 12, 2026      
Investments, fair value $ 5,000 $ 3,000          
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Sleep OpCo LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:SleepOpCoLLCMember whfcl:SleepOpCoLLCMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Home Furnishings Home Furnishings Home Furnishings Home Furnishings      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.50% 6.50% 6.50% 6.50%      
Interest Rate 11.28% 12.07% 11.28% 12.07%      
Acquisition Date Oct. 12, 2021 Oct. 12, 2021          
Maturity Date Oct. 12, 2026 Oct. 12, 2026 Oct. 12, 2026 Oct. 12, 2026      
Principal/Share Amount $ 22,590,000 $ 20,616,000          
Investments, amortized cost 22,401,000 20,385,000          
Investments, fair value $ 22,441,000 $ 20,407,000          
Percent of net assets 7.80% 6.40% 7.80% 6.40%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Smalto Inc, First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:SmaltoInc.Member            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Household Appliances   Household Appliances        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:EuroInterbankOfferedRateMember   whfcl:EuroInterbankOfferedRateMember        
Floor 1.00%   1.00%        
Spread Above Index 6.00%   6.00%        
Interest Rate 8.86%   8.86%        
Acquisition Date May 04, 2022            
Maturity Date Apr. 28, 2028   Apr. 28, 2028        
Principal/Share Amount $ 6,423,000            
Investments, amortized cost 6,682,000            
Investments, fair value $ 6,654,000            
Investment, Identifier [Axis]: Smalto Inc, First Lien Secured Term Loan Interest Rate 10.18              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:SmaltoInc.Member          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Household Appliances   Household Appliances      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:EuroInterbankOfferedRateMember   whfcl:EuroInterbankOfferedRateMember      
Floor   1.00%   1.00%      
Spread Above Index   6.25%   6.25%      
Interest Rate   10.18%   10.18%      
Acquisition Date   May 04, 2022          
Maturity Date   Apr. 28, 2028   Apr. 28, 2028      
Principal/Share Amount   $ 6,576,000          
Investments, amortized cost   6,821,000          
Investments, fair value   $ 7,172,000          
Investment, Identifier [Axis]: Smalto Inc, First Lien Secured Term Loan Interest Rate 11.50              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:SmaltoInc.Member          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Household Appliances   Household Appliances      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   6.00%   6.00%      
Interest Rate   11.50%   11.50%      
Acquisition Date   May 04, 2022          
Maturity Date   Apr. 28, 2028   Apr. 28, 2028      
Principal/Share Amount   $ 1,001,000          
Investments, amortized cost   987,000          
Investments, fair value   $ 996,000          
Investment, Identifier [Axis]: Smalto Inc, First Lien Secured Term Loan One              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:SmaltoInc.Member            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Household Appliances   Household Appliances        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 5.75%   5.75%        
Interest Rate 10.21%   10.21%        
Acquisition Date May 04, 2022            
Maturity Date Apr. 28, 2028   Apr. 28, 2028        
Principal/Share Amount $ 978,000            
Investments, amortized cost 967,000            
Investments, fair value $ 978,000            
Investment, Identifier [Axis]: Snap Fitness Holdings, Inc Class A Common Stock              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:SnapFitnessHoldingsIncMember whfcl:SnapFitnessHoldingsIncMember          
Investment, Type [Extensible Enumeration] us-gaap:CommonClassAMember us-gaap:CommonClassAMember us-gaap:CommonClassAMember us-gaap:CommonClassAMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Leisure Facilities Leisure Facilities Leisure Facilities Leisure Facilities      
Acquisition Date Jun. 29, 2020 Jun. 29, 2020          
Investment owned shares | shares 2 2 2 2      
Investments, amortized cost $ 1,941,000 $ 1,941,000          
Investments, fair value $ 173,000 $ 130,000          
Percent of net assets 0.10%   0.10%        
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Snap Fitness Holdings, Inc First Lien Secured Term Loan C              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:SnapFitnessHoldingsIncMember whfcl:SnapFitnessHoldingsIncMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredTermLoanCMember whfcl:FirstLienSecuredTermLoanCMember whfcl:FirstLienSecuredTermLoanCMember whfcl:FirstLienSecuredTermLoanCMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Leisure Facilities Leisure Facilities Leisure Facilities Leisure Facilities      
Interest Rate 9.50% 9.50% 9.50% 9.50%      
PIK interest rate   9.50%   9.50%      
Acquisition Date Jun. 29, 2020 Jun. 29, 2020          
Principal/Share Amount $ 1,822,000 $ 1,657,000          
Investments, amortized cost 1,819,000 1,654,000          
Investments, fair value $ 1,790,000 $ 1,623,000          
Percent of net assets 0.60% 0.50% 0.60% 0.50%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Snap Fitness Holdings, Inc Warrants              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:SnapFitnessHoldingsIncMember whfcl:SnapFitnessHoldingsIncMember          
Investment, Type [Extensible Enumeration] Warrant [Member] Warrant [Member] Warrant [Member] Warrant [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Leisure Facilities Leisure Facilities Leisure Facilities Leisure Facilities      
Acquisition Date Jun. 29, 2020 Jun. 29, 2020          
Investment owned shares | shares 1 1 1 1      
Investments, amortized cost $ 793,000 $ 793,000          
Investments, fair value $ 70,000 $ 53,000          
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Solar Holdings Bidco Limited First Lien Secured Term Loan CDOR              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:SolarHoldingsBidcoLimitedMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Research & Consulting Services   Research & Consulting Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:CanadianDollarOfferedRateMember   whfcl:CanadianDollarOfferedRateMember      
Floor   0.50%   0.50%      
Spread Above Index   6.50%   6.50%      
Interest Rate   11.94%   11.94%      
Acquisition Date   Mar. 23, 2023          
Maturity Date   Sep. 28, 2029   Sep. 28, 2029      
Principal/Share Amount   $ 3,873,000          
Investments, amortized cost   2,759,000          
Investments, fair value   $ 2,892,000          
Investment, Identifier [Axis]: Solar Holdings Bidco Limited First Lien Secured Term Loan SOFR              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:SolarHoldingsBidcoLimitedMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Research & Consulting Services   Research & Consulting Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   0.50%   0.50%      
Spread Above Index   6.50%   6.50%      
Interest Rate   11.85%   11.85%      
Acquisition Date   Mar. 23, 2023          
Maturity Date   Sep. 28, 2029   Sep. 28, 2029      
Principal/Share Amount   $ 2,807,000          
Investments, amortized cost   2,744,000          
Investments, fair value   $ 2,786,000          
Investment, Identifier [Axis]: Solar Holdings Bidco Limited First Lien Secured Term Loan SONIA              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:SolarHoldingsBidcoLimitedMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Research & Consulting Services   Research & Consulting Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Sterling Overnight Index Average [Member]   Sterling Overnight Index Average [Member]      
Floor   0.00%   0.00%      
Spread Above Index   6.50%   6.50%      
Interest Rate   11.72%   11.72%      
Acquisition Date   Mar. 23, 2023          
Maturity Date   Sep. 28, 2029   Sep. 28, 2029      
Principal/Share Amount   $ 171,000          
Investments, amortized cost   205,000          
Investments, fair value   $ 217,000          
Investment, Identifier [Axis]: Solar Holdings Bidco Limited, First Lien Secured Delayed Draw Loan CDOR              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:SolarHoldingsBidcoLimitedMember          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Research & Consulting Services   Research & Consulting Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:CanadianDollarOfferedRateMember   whfcl:CanadianDollarOfferedRateMember      
Floor   0.50%   0.50%      
Spread Above Index   6.50%   6.50%      
Interest Rate   12.08%   12.08%      
Acquisition Date   Mar. 23, 2023          
Maturity Date   Sep. 28, 2029   Sep. 28, 2029      
Principal/Share Amount   $ 458,000          
Investments, amortized cost   324,000          
Investments, fair value   $ 342,000          
Investment, Identifier [Axis]: Solar Holdings Bidco Limited, First Lien Secured Delayed Draw Loan SOFR              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:SolarHoldingsBidcoLimitedMember          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Research & Consulting Services   Research & Consulting Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   0.50%   0.50%      
Spread Above Index   6.50%   6.50%      
Interest Rate   11.85%   11.85%      
Acquisition Date   Mar. 23, 2023          
Maturity Date   Sep. 28, 2029   Sep. 28, 2029      
Principal/Share Amount   $ 368,000          
Investments, amortized cost   360,000          
Investments, fair value   $ 366,000          
Investment, Identifier [Axis]: Solar Holdings Bidco Limited, First Lien Secured Delayed Draw Loan SONIA              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:SolarHoldingsBidcoLimitedMember          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Research & Consulting Services   Research & Consulting Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Sterling Overnight Index Average [Member]   Sterling Overnight Index Average [Member]      
Floor   0.00%   0.00%      
Spread Above Index   6.50%   6.50%      
Interest Rate   11.71%   11.71%      
Acquisition Date   Mar. 23, 2023          
Maturity Date   Sep. 28, 2029   Sep. 28, 2029      
Principal/Share Amount   $ 723,000          
Investments, amortized cost   882,000          
Investments, fair value   $ 984,000          
Investment, Identifier [Axis]: Source Code Holdings, LLC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:SourceCodeHoldingsLLCMember          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Technology Hardware, Storage & Peripherals   Technology Hardware, Storage & Peripherals      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   6.50%   6.50%      
Interest Rate   11.96%   11.96%      
Acquisition Date   Aug. 10, 2021          
Maturity Date   Jul. 30, 2027   Jul. 30, 2027      
Principal/Share Amount   $ 4,088,000          
Investments, amortized cost   4,039,000          
Investments, fair value   $ 4,047,000          
Investment, Identifier [Axis]: Source Code Holdings, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:SourceCodeHoldingsLLCMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Technology Hardware, Storage & Peripherals   Technology Hardware, Storage & Peripherals      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   6.50%   6.50%      
Interest Rate   11.96%   11.96%      
Acquisition Date   Aug. 10, 2021          
Maturity Date   Jul. 30, 2027   Jul. 30, 2027      
Principal/Share Amount   $ 14,952,000          
Investments, amortized cost   14,772,000          
Investments, fair value   $ 14,806,000          
Investment, Identifier [Axis]: Source Code Holdings, LLC., First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:SourceCodeHoldingsLLCMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Technology Hardware, Storage & Peripherals   Technology Hardware, Storage & Peripherals        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 6.50%   6.50%        
Interest Rate 10.96%   10.96%        
Acquisition Date Aug. 10, 2021            
Maturity Date Jul. 30, 2027   Jul. 30, 2027        
Principal/Share Amount $ 3,872,000            
Investments, amortized cost 3,839,000            
Investments, fair value $ 3,854,000            
Investment, Identifier [Axis]: Source Code Holdings, LLC., First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:SourceCodeHoldingsLLCMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Technology Hardware, Storage & Peripherals   Technology Hardware, Storage & Peripherals        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 6.50%   6.50%        
Interest Rate 10.96%   10.96%        
Acquisition Date Aug. 10, 2021            
Maturity Date Jul. 30, 2027   Jul. 30, 2027        
Principal/Share Amount $ 14,162,000            
Investments, amortized cost 14,041,000            
Investments, fair value $ 14,095,000            
Investment, Identifier [Axis]: Sterling Pure Blocker, LLC (d/b/a Banner Industries, Inc.) Class B Units              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:SterlingPureBlockerLlcMember whfcl:SterlingPureBlockerLlcMember          
Investment, Type [Extensible Enumeration] whfcl:ClassBUnitsMember whfcl:ClassBUnitsMember whfcl:ClassBUnitsMember whfcl:ClassBUnitsMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Construction & Engineering Construction & Engineering Construction & Engineering Construction & Engineering      
Acquisition Date Dec. 01, 2023 Dec. 01, 2023          
Investment owned shares | shares 404 404 404 404      
Investments, amortized cost $ 404,000 $ 404,000          
Investments, fair value $ 388,000 $ 404,000          
Percent of net assets 0.10% 0.10% 0.10% 0.10%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: StoicLane MidCo, LLC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:StoiclaneMidcoLlcMember          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Real Estate Services [Member]   Real Estate Services [Member]      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   7.50%   7.50%      
Interest Rate   13.00%   13.00%      
Acquisition Date   Nov. 04, 2022          
Maturity Date   Nov. 04, 2027   Nov. 04, 2027      
Principal/Share Amount   $ 5,545,000          
Investments, amortized cost   5,466,000          
Investments, fair value   $ 5,633,000          
Percent of net assets   1.80%   1.80%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: StoicLane MidCo, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:StoiclaneMidcoLlcMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Real Estate Services [Member]   Real Estate Services [Member]      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   7.50%   7.50%      
Interest Rate   13.00%   13.00%      
Acquisition Date   Nov. 04, 2022          
Maturity Date   Nov. 04, 2027   Nov. 04, 2027      
Principal/Share Amount   $ 4,606,000          
Investments, amortized cost   4,518,000          
Investments, fair value   $ 4,606,000          
Percent of net assets   1.50%   1.50%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Sunless, Inc. First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:SunlessInc.Member          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Personal Products   Personal Products      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   6.75%   6.75%      
Interest Rate   12.21%   12.21%      
Acquisition Date   Oct. 21, 2019          
Maturity Date   Aug. 13, 2025   Aug. 13, 2025      
Principal/Share Amount   $ 488,000          
Investments, amortized cost   485,000          
Investments, fair value   $ 484,000          
Investment, Identifier [Axis]: Sunless, Inc. First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:SunlessInc.Member          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Personal Products   Personal Products      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   6.75%   6.75%      
Interest Rate   12.20%   12.20%      
Acquisition Date   Oct. 21, 2019          
Maturity Date   Aug. 13, 2025   Aug. 13, 2025      
Principal/Share Amount   $ 5,507,000          
Investments, amortized cost   5,459,000          
Investments, fair value   $ 5,473,000          
Investment, Identifier [Axis]: Surge Amuze Holdings Inc. First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] Surge Amuze Holdings Inc [Member]            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Leisure Products   Leisure Products        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 6.00%   6.00%        
Interest Rate 10.46%   10.46%        
Acquisition Date Sep. 06, 2024            
Maturity Date Sep. 06, 2029   Sep. 06, 2029        
Principal/Share Amount $ 584,000            
Investments, amortized cost 573,000            
Investments, fair value $ 577,000            
Percent of net assets 0.20%   0.20%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Surge Amuze Holdings Inc. First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] Surge Amuze Holdings Inc [Member]            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Leisure Products   Leisure Products        
Investment, Variable Interest Rate, Type [Extensible Enumeration] us-gaap:PrimeRateMember   us-gaap:PrimeRateMember        
Floor 1.00%   1.00%        
Spread Above Index 5.00%   5.00%        
Interest Rate 12.50%   12.50%        
Acquisition Date Sep. 06, 2024            
Maturity Date Sep. 06, 2029   Sep. 06, 2029        
Principal/Share Amount $ 585,000            
Investments, amortized cost 574,000            
Investments, fair value $ 576,000            
Percent of net assets 0.20%   0.20%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Surge Amuze Holdings Inc. First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] Surge Amuze Holdings Inc [Member]            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Leisure Products   Leisure Products        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 6.00%   6.00%        
Interest Rate 10.44%   10.44%        
Acquisition Date Sep. 06, 2024            
Maturity Date Sep. 06, 2029   Sep. 06, 2029        
Principal/Share Amount $ 5,737,000            
Investments, amortized cost 5,629,000            
Investments, fair value $ 5,643,000            
Percent of net assets 2.00%   2.00%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: TOT Group, Inc. (d/b/a Netevia Group LLC) First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] Tot Group, Inc. [Member]            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Transaction & Payment Processing Services   Transaction & Payment Processing Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 7.50%   7.50%        
Interest Rate 11.83%   11.83%        
Acquisition Date Jun. 28, 2024            
Maturity Date Jun. 28, 2029   Jun. 28, 2029        
Investments, fair value $ (1,000)            
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: TOT Group, Inc. (d/b/a Netevia Group LLC) First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] Tot Group, Inc. [Member]            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Transaction & Payment Processing Services   Transaction & Payment Processing Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 7.50%   7.50%        
Interest Rate 11.83%   11.83%        
Acquisition Date Jun. 28, 2024            
Maturity Date Jun. 28, 2029   Jun. 28, 2029        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: TOT Group, Inc. (d/b/a Netevia Group LLC) First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] Tot Group, Inc. [Member]            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Transaction & Payment Processing Services   Transaction & Payment Processing Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 7.50%   7.50%        
Interest Rate 11.83%   11.83%        
Acquisition Date Jun. 28, 2024            
Maturity Date Jun. 28, 2029   Jun. 28, 2029        
Principal/Share Amount $ 8,239,000            
Investments, amortized cost 8,074,000            
Investments, fair value $ 8,067,000            
Percent of net assets 2.80%   2.80%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: TOUR Intermediate Holdings, LLC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:TOURIntermediateHoldingsLLCMember          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Investment Banking & Brokerage   Investment Banking & Brokerage      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   6.50%   6.50%      
Interest Rate   11.96%   11.96%      
Acquisition Date   May 19, 2020          
Maturity Date   May 15, 2025   May 15, 2025      
Principal/Share Amount   $ 2,320,000          
Investments, amortized cost   2,315,000          
Investments, fair value   $ 2,320,000          
Investment, Identifier [Axis]: TOUR Intermediate Holdings, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration]   whfcl:TOURIntermediateHoldingsLLCMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Investment Banking & Brokerage   Investment Banking & Brokerage      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   6.50%   6.50%      
Interest Rate   11.96%   11.96%      
Acquisition Date   May 19, 2020          
Maturity Date   May 15, 2025   May 15, 2025      
Principal/Share Amount   $ 2,657,000          
Investments, amortized cost   2,643,000          
Investments, fair value   $ 2,657,000          
Investment, Identifier [Axis]: TableTrust Brands LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:TabletrustBrandsLlcMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services   IT Consulting And Other Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 5.75%   5.75%        
Interest Rate 10.22%   10.22%        
Acquisition Date Dec. 24, 2024            
Maturity Date Jun. 28, 2028   Jun. 28, 2028        
Principal/Share Amount $ 2,505,000            
Investments, amortized cost 2,468,000            
Investments, fair value $ 2,468,000            
Investment, Identifier [Axis]: Team Car Care Holdings, First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:TeamCarCareHoldingsLLCMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Automotive Retail   Automotive Retail      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   Base Rate [Member]   Base Rate [Member]      
Floor   1.00%   1.00%      
Spread Above Index   7.48%   7.48%      
Interest Rate   13.09%   13.09%      
Acquisition Date   Feb. 16, 2018          
Maturity Date   Dec. 31, 2024   Dec. 31, 2024      
Principal/Share Amount   $ 12,407,000          
Investments, amortized cost   12,391,000          
Investments, fair value   $ 12,407,000          
Percent of net assets   3.90%   3.90%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: Telestream Holdings Corporation First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] Telestream Holdings Corporation [Member] Telestream Holdings Corporation [Member]          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00%   1.00%        
Spread Above Index 9.75% 11.75% 9.75% 11.75%      
Interest Rate   17.21%   17.21%      
PIK interest rate 14.21%   14.21%        
Acquisition Date Oct. 15, 2020 Oct. 15, 2020          
Maturity Date Oct. 15, 2025 Oct. 15, 2025 Oct. 15, 2025 Oct. 15, 2025      
Principal/Share Amount $ 1,116,000 $ 1,242,000          
Investments, amortized cost 1,051,000 1,228,000          
Investments, fair value $ 1,009,000 $ 1,223,000          
Percent of net assets 0.40% 0.40% 0.40% 0.40%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Telestream Holdings Corporation First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] Telestream Holdings Corporation [Member] Telestream Holdings Corporation [Member]          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals Technology Hardware, Storage & Peripherals      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 9.75% 11.75% 9.75% 11.75%      
Interest Rate   17.28%   17.28%      
PIK interest rate 14.21%   14.21%        
Acquisition Date Oct. 15, 2020 Oct. 15, 2020          
Maturity Date Oct. 15, 2025 Oct. 15, 2025 Oct. 15, 2025 Oct. 15, 2025      
Principal/Share Amount $ 18,547,000 $ 15,763,000          
Investments, amortized cost 17,496,000 15,580,000          
Investments, fair value $ 17,063,000 $ 15,522,000          
Percent of net assets 5.90% 4.90% 5.90% 4.90%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: The Kyjen Company, LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:TheKyjenCompanyLLCMember whfcl:TheKyjenCompanyLLCMember          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Household Products Household Products Household Products Household Products      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.50% 7.50% 6.50% 7.50%      
Interest Rate 10.97% 13.21% 10.97% 13.21%      
Cash interest rate 10.22% 12.21% 10.22% 12.21%      
PIK interest rate 0.75% 1.00% 0.75% 1.00%      
Acquisition Date Apr. 05, 2021 Apr. 05, 2021          
Maturity Date Apr. 05, 2026 Apr. 05, 2026 Apr. 05, 2026 Apr. 05, 2026      
Principal/Share Amount $ 798,000            
Investments, amortized cost 795,000            
Investments, fair value $ 761,000 $ (31,000)          
Percent of net assets 0.30%   0.30%        
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: The Kyjen Company, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:TheKyjenCompanyLLCMember whfcl:TheKyjenCompanyLLCMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Household Products Household Products Household Products Household Products      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 7.25% 7.50% 7.25% 7.50%      
Interest Rate 12.05% 13.21% 12.05% 13.21%      
Cash interest rate 11.30% 12.21% 11.30% 12.21%      
PIK interest rate 0.75% 1.00% 0.75% 1.00%      
Acquisition Date Apr. 05, 2021 Apr. 05, 2021          
Maturity Date Apr. 05, 2026 Apr. 05, 2026 Apr. 05, 2026 Apr. 05, 2026      
Principal/Share Amount $ 11,350,000 $ 11,358,000          
Investments, amortized cost 11,309,000 11,282,000          
Investments, fair value $ 10,895,000 $ 10,904,000          
Percent of net assets 3.80% 3.40% 3.80% 3.40%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Token Buyer, Inc First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:TokenBuyerIncMember whfcl:TokenBuyerIncMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Household Appliances Household Appliances Household Appliances Household Appliances      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 0.50% 0.50% 0.50% 0.50%      
Spread Above Index 6.00% 6.00% 6.00% 6.00%      
Interest Rate 10.74% 11.53% 10.74% 11.53%      
Acquisition Date May 26, 2022 May 26, 2022          
Maturity Date May 31, 2029 May 31, 2029 May 31, 2029 May 31, 2029      
Principal/Share Amount $ 7,070,000 $ 7,142,000          
Investments, amortized cost 6,709,000 6,695,000          
Investments, fair value $ 5,658,000 $ 5,966,000          
Percent of net assets 2.00% 1.90% 2.00% 1.90%      
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Trailhead Media LLC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] Trailhead Media L L C [Member]            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Advertising   Advertising        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 5.50%   5.50%        
Interest Rate 9.82%   9.82%        
Cash interest rate 9.07%   9.07%        
PIK interest rate 0.75%   0.75%        
Acquisition Date Dec. 30, 2024            
Maturity Date Dec. 28, 2029   Dec. 28, 2029        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Trailhead Media LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] Trailhead Media L L C [Member]            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Advertising   Advertising        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 5.50%   5.50%        
Interest Rate 9.82%   9.82%        
Cash interest rate 9.07%   9.07%        
PIK interest rate 0.75%   0.75%        
Acquisition Date Dec. 30, 2024            
Maturity Date Dec. 28, 2029   Dec. 28, 2029        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Trailhead Media LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] Trailhead Media L L C [Member]            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Advertising   Advertising        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 5.50%   5.50%        
Interest Rate 9.82%   9.82%        
Cash interest rate 9.07%   9.07%        
PIK interest rate 0.75%   0.75%        
Acquisition Date Dec. 30, 2024            
Maturity Date Dec. 28, 2029   Dec. 28, 2029        
Principal/Share Amount $ 6,648,000            
Investments, amortized cost 6,548,000            
Investments, fair value $ 6,548,000            
Percent of net assets 2.30%   2.30%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Transervice Holdings, Inc. (d/b/a Transervice Logistics, Inc.) First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:TranserviceHoldingsIncMember whfcl:TranserviceHoldingsIncMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics Air Freight & Logistics      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 2.00% 2.00% 2.00% 2.00%      
Spread Above Index 7.25% 7.50% 7.25% 7.50%      
Interest Rate 11.71% 12.96% 11.71% 12.96%      
Acquisition Date Jun. 29, 2023 Jun. 29, 2023          
Maturity Date Jun. 29, 2028 Jun. 29, 2028 Jun. 29, 2028 Jun. 29, 2028      
Principal/Share Amount $ 8,663,000 $ 8,888,000          
Investments, amortized cost 8,481,000 8,648,000          
Investments, fair value $ 8,715,000 $ 8,743,000          
Percent of net assets 3.00% 2.80% 3.00% 2.80%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Trimlite Buyer LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:TrimliteBuyerLLCMember whfcl:TrimliteBuyerLLCMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] country:CA country:CA country:CA country:CA      
Investment, Industry Sector [Extensible Enumeration] Building Products Building Products Building Products Building Products      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:CanadianDollarOfferedRateMember whfcl:CanadianDollarOfferedRateMember whfcl:CanadianDollarOfferedRateMember whfcl:CanadianDollarOfferedRateMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.50% 6.50% 6.50% 6.50%      
Interest Rate 9.99% 11.94% 9.99% 11.94%      
Acquisition Date Jul. 27, 2021 Jul. 27, 2021          
Maturity Date Jul. 27, 2027 Jul. 27, 2027 Jul. 27, 2027 Jul. 27, 2027      
Principal/Share Amount     $ 18,984 $ 19,624      
Investments, amortized cost $ 15,006,000 $ 15,472,000          
Investments, fair value $ 13,206,000 $ 14,810,000          
Percent of net assets 4.60% 4.70% 4.60% 4.70%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: TriplePoint Acquisition Holdings LLC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:TriplepointAcquisitionHoldingsLlcMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Construction & Engineering   Construction & Engineering        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 5.50%   5.50%        
Interest Rate 9.83%   9.83%        
Acquisition Date Jun. 14, 2024            
Maturity Date May 31, 2029   May 31, 2029        
Investments, fair value $ 9,000            
Investment, Identifier [Axis]: TriplePoint Acquisition Holdings LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:TriplepointAcquisitionHoldingsLlcMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Construction & Engineering   Construction & Engineering        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 5.50%   5.50%        
Interest Rate 9.83%   9.83%        
Acquisition Date Jun. 14, 2024            
Maturity Date May 31, 2029   May 31, 2029        
Investments, fair value $ 12,000            
Investment, Identifier [Axis]: TriplePoint Acquisition Holdings LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:TriplepointAcquisitionHoldingsLlcMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Construction & Engineering   Construction & Engineering        
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]   Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]        
Floor 1.00%   1.00%        
Spread Above Index 5.50%   5.50%        
Interest Rate 9.83%   9.83%        
Acquisition Date Jun. 14, 2024            
Maturity Date May 31, 2029   May 31, 2029        
Principal/Share Amount $ 5,349,000            
Investments, amortized cost 5,254,000            
Investments, fair value $ 5,338,000            
Investment, Identifier [Axis]: Turnberry Solutions., First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:TurnberrySolutionsInc.Member whfcl:TurnberrySolutionsInc.Member          
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember whfcl:FirstLienSecuredRevolvingLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 5.75% 5.75% 5.75% 5.75%      
Interest Rate 10.21% 11.45% 10.21% 11.45%      
Acquisition Date Aug. 10, 2021 Aug. 10, 2021          
Maturity Date Sep. 02, 2026 Sep. 02, 2026 Sep. 02, 2026 Sep. 02, 2026      
Investments, fair value $ 4,000 $ 2,000          
Investment, Identifier [Axis]: Turnberry Solutions., First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:TurnberrySolutionsInc.Member whfcl:TurnberrySolutionsInc.Member          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services      
Investment, Variable Interest Rate, Type [Extensible Enumeration] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member] Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 5.75% 5.75% 5.75% 5.75%      
Interest Rate 10.21% 11.45% 10.21% 11.45%      
Acquisition Date Aug. 10, 2021 Aug. 10, 2021          
Maturity Date Sep. 02, 2026 Sep. 02, 2026 Sep. 02, 2026 Sep. 02, 2026      
Principal/Share Amount $ 5,964,000 $ 6,026,000          
Investments, amortized cost 5,924,000 5,962,000          
Investments, fair value $ 5,964,000 $ 5,979,000          
Investment, Identifier [Axis]: Twin Ridge CRS, LP (d/b/a CRS OneSource) Class A Common Units              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:TwinRidgeCrsLpMember            
Investment, Type [Extensible Enumeration] whfcl:ClassCommonUnitsMember   whfcl:ClassCommonUnitsMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Food Distributors   Food Distributors        
Acquisition Date May 10, 2024            
Investment owned shares | shares 63   63        
Investments, amortized cost $ 317,000            
Investments, fair value $ 350,000            
Percent of net assets 0.10%   0.10%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: US Methanol Midco LLC (d/b/a US Methanol LLC) First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:UsMethanolMidcoLlcMember          
Investment, Type [Extensible Enumeration]   whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Commodity Chemicals   Commodity Chemicals      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   7.75%   7.75%      
Interest Rate   13.29%   13.29%      
Acquisition Date   Dec. 20, 2022          
Maturity Date   Dec. 20, 2027   Dec. 20, 2027      
Principal/Share Amount   $ 9,540,000          
Investments, amortized cost   9,345,000          
Investments, fair value   $ 9,449,000          
Percent of net assets   3.00%   3.00%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: US Methanol Midco LLC (d/b/a US Methanol LLC) First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration]   whfcl:UsMethanolMidcoLlcMember          
Investment, Type [Extensible Enumeration]   First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration]   Commodity Chemicals   Commodity Chemicals      
Investment, Variable Interest Rate, Type [Extensible Enumeration]   whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember      
Floor   1.00%   1.00%      
Spread Above Index   7.75%   7.75%      
Interest Rate   13.28%   13.28%      
Acquisition Date   Dec. 20, 2022          
Maturity Date   Dec. 20, 2027   Dec. 20, 2027      
Principal/Share Amount   $ 5,203,000          
Investments, amortized cost   5,111,000          
Investments, fair value   $ 5,153,000          
Percent of net assets   1.60%   1.60%      
Investment, Restriction Status [true false]   true   true      
Investment, Significant Unobservable Input [true false]   true   true      
Investment, Non-income Producing [true false]   false   false      
Investment, Identifier [Axis]: UserZoom Technologies, Inc. First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:UserzoomTechnologiesIncMember whfcl:UserzoomTechnologiesIncMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Application Software Application Software Application Software Application Software      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 7.50% 7.50% 7.50% 7.50%      
Interest Rate 12.75% 12.99% 12.75% 12.99%      
Acquisition Date Jan. 12, 2023 Jan. 12, 2023          
Maturity Date Apr. 05, 2029 Apr. 05, 2029 Apr. 05, 2029 Apr. 05, 2029      
Principal/Share Amount $ 9,819,000 $ 9,819,000          
Investments, amortized cost 9,618,000 9,570,000          
Investments, fair value $ 9,809,000 $ 9,719,000          
Percent of net assets 3.40% 3.20% 3.40% 3.20%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Vistria Blocked MGT Investor, LP (d/b/a MGT Consulting Group) Series A Units              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:VistriaBlockedMgtInvestorLpMember whfcl:VistriaBlockedMgtInvestorLpMember          
Investment, Type [Extensible Enumeration] whfcl:SeriesUnitsMember whfcl:ClassAUnitsMember whfcl:SeriesUnitsMember whfcl:ClassAUnitsMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services IT Consulting And Other Services      
Acquisition Date Apr. 10, 2023 Apr. 10, 2023          
Investments, amortized cost $ 314,000 $ 314,000          
Investments, fair value $ 493,000 $ 406,000          
Percent of net assets 0.20% 0.10% 0.20% 0.10%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: W Electric Intermediate Holdings, LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] W Electric Intermediate Holdings, LLC [Member]            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Industrial Machinery & Supplies & Components   Industrial Machinery & Supplies & Components        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 6.50%   6.50%        
Interest Rate 10.86%   10.86%        
Cash interest rate 9.86%   9.86%        
PIK interest rate 1.00%   1.00%        
Acquisition Date Aug. 15, 2024            
Maturity Date Aug. 15, 2029   Aug. 15, 2029        
Investments, fair value $ 9,000            
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: W Electric Intermediate Holdings, LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] W Electric Intermediate Holdings, LLC [Member]            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Industrial Machinery & Supplies & Components   Industrial Machinery & Supplies & Components        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 6.50%   6.50%        
Interest Rate 10.86%   10.86%        
Cash interest rate 9.86%   9.86%        
PIK interest rate 1.00%   1.00%        
Acquisition Date Aug. 15, 2024            
Maturity Date Aug. 15, 2029   Aug. 15, 2029        
Principal/Share Amount $ 12,322,000            
Investments, amortized cost 12,124,000            
Investments, fair value $ 12,216,000            
Percent of net assets 4.30%   4.30%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: WHF STRS Ohio Senior Loan Fund LLC Equity              
Schedule of Investments [Line Items]              
Investment, Issuer Name [Extensible Enumeration] whfcl:WHFSTRSOhioSeniorLoanFundLLCMember whfcl:WHFSTRSOhioSeniorLoanFundLLCMember          
Investment, Type [Extensible Enumeration] Equity Investments Equity Investments Equity Investments Equity Investments      
Investments, fair value $ 22,741,000 $ 22,782,000         20,160,000
Investment, Identifier [Axis]: WHF STRS Ohio Senior Loan Fund LLC Interests              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:WHFSTRSOhioSeniorLoanFundMember whfcl:WHFSTRSOhioSeniorLoanFundMember          
Investment, Type [Extensible Enumeration] whfcl:LLCInterestsMember whfcl:LLCInterestsMember whfcl:LLCInterestsMember whfcl:LLCInterestsMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Specialized Finance Specialized Finance Specialized Finance Specialized Finance      
Acquisition Date Jul. 19, 2019 Jul. 19, 2019          
Investment owned shares | shares 21,104 21,104 21,104 21,104      
Investments, amortized cost $ 21,104,000 $ 21,104,000          
Investments, fair value $ 22,741,000 $ 22,782,000          
Percent of net assets 7.90% 7.20% 7.90% 7.20%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: WHF STRS Ohio Senior Loan Fund LLC Subordinated Note              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:WHFSTRSOhioSeniorLoanFundLLCMember whfcl:WHFSTRSOhioSeniorLoanFundLLCMember          
Investment, Type [Extensible Enumeration] Subordinated Debt [Member] Subordinated Debt [Member] Subordinated Debt [Member] Subordinated Debt [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Specialized Finance Specialized Finance Specialized Finance Specialized Finance      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Spread Above Index 6.50% 6.50% 6.50% 6.50%      
Interest Rate 10.83% 11.85% 10.83% 11.85%      
Acquisition Date Jul. 19, 2019 Jul. 19, 2019          
Principal/Share Amount $ 84,416,000 $ 84,416,000          
Investments, amortized cost 84,416,000 84,416,000          
Investments, fair value $ 84,416,000 $ 84,416,000         $ 80,000,000
Percent of net assets 29.50% 26.60% 29.50% 26.60%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Wamp;A Intermediate Co., LLC First Lien Secured Delayed Draw Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:WakefieldAndAssociatesIntermediateCo.LlcMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredDelayedDrawLoanMember   whfcl:FirstLienSecuredDelayedDrawLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Health Care Services   Health Care Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 6.25%   6.25%        
Interest Rate 10.58%   10.58%        
Acquisition Date Aug. 01, 2024            
Maturity Date Aug. 01, 2029   Aug. 01, 2029        
Investments, fair value $ 2,000            
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Wamp;A Intermediate Co., LLC First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:WakefieldAndAssociatesIntermediateCo.LlcMember            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Health Care Services   Health Care Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 6.25%   6.25%        
Interest Rate 10.58%   10.58%        
Acquisition Date Aug. 01, 2024            
Maturity Date Aug. 01, 2029   Aug. 01, 2029        
Principal/Share Amount $ 258,000            
Investments, amortized cost 253,000            
Investments, fair value $ 254,000            
Percent of net assets 0.10%   0.10%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Wamp;A Intermediate Co., LLC First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:WakefieldAndAssociatesIntermediateCo.LlcMember            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Health Care Services   Health Care Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 6.25%   6.25%        
Interest Rate 10.58%   10.58%        
Acquisition Date Aug. 01, 2024            
Maturity Date Aug. 01, 2029   Aug. 01, 2029        
Principal/Share Amount $ 7,689,000            
Investments, amortized cost 7,548,000            
Investments, fair value $ 7,555,000            
Percent of net assets 2.60%   2.60%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: What If Media Group, LLC Common Units              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:WhatIfMediaGroupLLCMember whfcl:WhatIfMediaGroupLLCMember          
Investment, Type [Extensible Enumeration] whfcl:CommonUnitsMember whfcl:CommonUnitsMember whfcl:CommonUnitsMember whfcl:CommonUnitsMember      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Interactive Media & Services Interactive Media & Services Interactive Media & Services Interactive Media & Services      
Acquisition Date Jul. 02, 2021 Jul. 02, 2021          
Investment owned shares | shares 3,081 3,081 3,081 3,081      
Investments, amortized cost $ 851,000 $ 851,000          
Investments, fair value $ 1,756,000 $ 1,615,000          
Percent of net assets 0.60% 0.50% 0.60% 0.50%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Whitestone Home Furnishings, LLC (d/b/a Saatva, Inc.) First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Name [Extensible Enumeration] whfcl:WhitestoneHomeFurnishingsLlcMember whfcl:WhitestoneHomeFurnishingsLlcMember          
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member] First Lien Secured Term Loan [Member]      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investment, Industry Sector [Extensible Enumeration] Home Furnishings Home Furnishings Home Furnishings Home Furnishings      
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember whfcl:SecuredOvernightFinancingRateSofrMember      
Floor 1.00% 1.00% 1.00% 1.00%      
Spread Above Index 6.00% 6.50% 6.00% 6.50%      
Interest Rate 10.46% 11.96% 10.46% 11.96%      
Acquisition Date Nov. 06, 2023 Nov. 06, 2023          
Maturity Date Aug. 20, 2026 Aug. 20, 2026 Aug. 20, 2026 Aug. 20, 2026      
Principal/Share Amount $ 2,930,000 $ 2,990,000          
Investments, amortized cost 2,887,000 2,919,000          
Investments, fair value $ 2,930,000 $ 2,919,000          
Percent of net assets 1.00% 0.90% 1.00% 0.90%      
Investment, Restriction Status [true false] true true true true      
Investment, Significant Unobservable Input [true false] true true true true      
Investment, Non-income Producing [true false] false false false false      
Investment, Identifier [Axis]: Zephyr Buyer, L.P. (d/b/a The Weather Company, LLC) First Lien Secured Revolving Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:ZephyrBuyerL.p.Member            
Investment, Type [Extensible Enumeration] whfcl:FirstLienSecuredRevolvingLoanMember   whfcl:FirstLienSecuredRevolvingLoanMember        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Interactive Media & Services   Interactive Media & Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 6.50%   6.50%        
Interest Rate 10.83%   10.83%        
Acquisition Date Jan. 31, 2024            
Maturity Date Jan. 31, 2030   Jan. 31, 2030        
Investments, fair value $ 48,000            
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Investment, Identifier [Axis]: Zephyr Buyer, L.P. (d/b/a The Weather Company, LLC) First Lien Secured Term Loan              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Name [Extensible Enumeration] whfcl:ZephyrBuyerL.p.Member            
Investment, Type [Extensible Enumeration] First Lien Secured Term Loan [Member]   First Lien Secured Term Loan [Member]        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investment, Industry Sector [Extensible Enumeration] Interactive Media & Services   Interactive Media & Services        
Investment, Variable Interest Rate, Type [Extensible Enumeration] whfcl:SecuredOvernightFinancingRateSofrMember   whfcl:SecuredOvernightFinancingRateSofrMember        
Floor 1.00%   1.00%        
Spread Above Index 6.50%   6.50%        
Interest Rate 10.83%   10.83%        
Acquisition Date Jan. 31, 2024            
Maturity Date Jan. 31, 2030   Jan. 31, 2030        
Principal/Share Amount $ 14,087,000            
Investments, amortized cost 13,789,000            
Investments, fair value $ 14,166,000            
Percent of net assets 5.00%   5.00%        
Investment, Restriction Status [true false] true   true        
Investment, Significant Unobservable Input [true false] true   true        
Investment, Non-income Producing [true false] false   false        
Morgan Stanley              
Schedule of Investments [Line Items]              
Unrealized appreciation $ 20,000            
Unrealized depreciation   $ (43,000)          
Morgan Stanley | CAD              
Schedule of Investments [Line Items]              
Currency to be sold 796 1,253          
Currency to be purchased   903          
Unrealized appreciation $ 20,000            
Unrealized depreciation   $ (43,000)          
Morgan Stanley | USD              
Schedule of Investments [Line Items]              
Currency to be purchased 574 903          
Advertising              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 11,937,000 $ 12,009,000          
Investments, fair value $ 12,035,000 $ 12,040,000          
Air Freight & Logistics              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 3,286,000 $ 3,503,000          
Investments, fair value $ 3,311,000 $ 3,504,000          
Broadline Retail              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 18,577,000 $ 18,798,000          
Investments, fair value $ 17,827,000 $ 18,759,000          
Building Products              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 13,445,000 $ 13,541,000          
Investments, fair value $ 13,437,000 $ 13,313,000          
Construction & Engineering              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 16,016,000 $ 9,476,000          
Investments, fair value $ 16,253,000 $ 9,550,000          
Data Processing & Outsourced Services              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 14,234,000 $ 14,969,000          
Investments, fair value $ 12,885,000 $ 14,659,000          
Distributors              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investments, amortized cost $ 9,307,000            
Investments, fair value $ 9,372,000            
Diversified Support Services              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 19,107,000 $ 19,246,000          
Investments, fair value $ 19,282,000 $ 19,136,000          
Electronic Equipment & Instruments              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investments, amortized cost   $ 13,203,000          
Investments, fair value   $ 13,269,000          
Environmental & Facilities Services              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 29,529,000 $ 19,632,000          
Investments, fair value $ 29,963,000 $ 19,691,000          
Food Distributors              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investments, amortized cost $ 4,919,000            
Investments, fair value $ 4,993,000            
Health Care Facilities              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investments, amortized cost $ 7,944,000            
Investments, fair value $ 8,004,000            
Health Care Services              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 4,898,000 $ 4,922,000          
Investments, fair value $ 4,995,000 $ 5,022,000          
Health Care Supplies              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 7,461,000 $ 7,500,000          
Investments, fair value $ 7,696,000 $ 7,530,000          
Household Appliances              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 7,649,000 $ 7,808,000          
Investments, fair value $ 7,632,000 $ 8,168,000          
Industrial Machinery & Supplies & Components              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investments, amortized cost   $ 6,498,000          
Investments, fair value   $ 6,561,000          
Investment Banking & Brokerage              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investments, amortized cost   $ 4,958,000          
Investments, fair value   $ 4,977,000          
IT Consulting And Other Services              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 32,427,000 $ 50,974,000          
Investments, fair value $ 32,720,000 $ 51,295,000          
Packaged Foods & Meats              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 6,939,000 $ 6,904,000          
Investments, fair value $ 7,009,000 $ 6,904,000          
Personal Products              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investments, amortized cost   $ 5,944,000          
Investments, fair value   $ 5,957,000          
Paper & Plastic Packaging Products & Materials              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 14,964,000 $ 14,939,000          
Investments, fair value $ 14,881,000 $ 14,913,000          
Research & Consulting Services              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 11,900,000 $ 15,815,000          
Investments, fair value $ 11,977,000 $ 16,149,000          
Technology Hardware, Storage & Peripherals              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 17,880,000 $ 18,811,000          
Investments, fair value $ 17,949,000 $ 18,853,000          
Wireless Telecommunication Services              
Schedule of Investments [Line Items]              
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 6,256,000 $ 6,294,000          
Investments, fair value $ 6,332,000 $ 6,295,000          
Debt Investments              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Controlled affiliate company investments, Non-controlled affiliate company investments, Non-controlled/non-affiliate company investments Controlled affiliate company investments, Non-controlled affiliate company investments, Non-controlled/non-affiliate company investments Controlled affiliate company investments, Non-controlled affiliate company investments, Non-controlled/non-affiliate company investments Controlled affiliate company investments, Non-controlled affiliate company investments, Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember, country:CA srt:NorthAmericaMember, country:CA srt:NorthAmericaMember, country:CA srt:NorthAmericaMember, country:CA      
Investments, amortized cost $ 631,941,000 $ 693,621,000          
Investments, fair value $ 596,626,000 $ 656,707,000          
Percent of net assets 208.40% 207.40% 208.40% 207.40%      
Debt Investments | Advertising              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investments, amortized cost $ 16,365,000            
Investments, fair value $ 16,862,000            
Percent of net assets 6.00%   6.00%        
Debt Investments | Air Freight & Logistics              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 29,360,000 $ 23,689,000          
Investments, fair value $ 28,518,000 $ 22,616,000          
Percent of net assets 9.90% 7.20% 9.90% 7.20%      
Debt Investments | Application Software              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 36,508,000 $ 39,567,000          
Investments, fair value $ 26,924,000 $ 34,202,000          
Percent of net assets 9.40% 11.00% 9.40% 11.00%      
Debt Investments | Automotive Retail              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investments, amortized cost   $ 12,391,000          
Investments, fair value   $ 12,407,000          
Percent of net assets   3.90%   3.90%      
Debt Investments | Broadcasting              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 7,808,000 $ 7,329,000          
Investments, fair value $ 7,833,000 $ 7,243,000          
Percent of net assets 2.70% 2.30% 2.70% 2.30%      
Debt Investments | Broadline Retail              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 4,556,000 $ 19,000,000          
Investments, fair value $ 4,580,000 $ 19,079,000          
Percent of net assets 1.60% 6.10% 1.60% 6.10%      
Debt Investments | Building Products              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] country:CA country:CA country:CA country:CA      
Investments, amortized cost $ 15,006,000 $ 15,472,000          
Investments, fair value $ 13,206,000 $ 14,810,000          
Percent of net assets 4.60% 4.70% 4.60% 4.70%      
Debt Investments | Commodity Chemicals              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 15,765,000 $ 30,242,000          
Investments, fair value $ 16,026,000 $ 30,712,000          
Percent of net assets 5.60% 9.70% 5.60% 9.70%      
Debt Investments | Construction & Engineering              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 3,539,000 $ 137,000          
Investments, fair value $ 3,539,000 $ 137,000          
Percent of net assets 1.20%   1.20%        
Debt Investments | Construction Materials              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 6,320,000 $ 8,023,000          
Investments, fair value $ 5,640,000 $ 6,901,000          
Percent of net assets 2.00% 2.20% 2.00% 2.20%      
Debt Investments | Data Processing & Outsourced Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 28,409,000 $ 34,137,000          
Investments, fair value $ 28,572,000 $ 33,997,000          
Percent of net assets 10.00% 10.80% 10.00% 10.80%      
Debt Investments | Distributors              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 10,563,000 $ 15,946,000          
Investments, fair value $ 10,690,000 $ 12,475,000          
Percent of net assets 3.70% 3.90% 3.70% 3.90%      
Debt Investments | Diversified Chemicals              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled affiliate company investments Non-controlled affiliate company investments, Non-controlled/non-affiliate company investments Non-controlled affiliate company investments Non-controlled affiliate company investments, Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 3,342,000 $ 10,549,000          
Investments, fair value $ 3,342,000 $ 10,008,000          
Percent of net assets 1.20% 3.20% 1.20% 3.20%      
Debt Investments | Diversified Support Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 9,559,000 $ 9,354,000          
Investments, fair value $ 9,414,000 $ 9,293,000          
Percent of net assets 3.30% 2.90% 3.30% 2.90%      
Debt Investments | Education Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 22,584,000 $ 20,877,000          
Investments, fair value $ 21,214,000 $ 20,300,000          
Percent of net assets 7.40% 6.50% 7.40% 6.50%      
Debt Investments | Electric Utilities              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 15,802,000 $ 15,715,000          
Investments, fair value $ 16,032,000 $ 15,954,000          
Percent of net assets 5.60% 5.00% 5.60% 5.00%      
Debt Investments | Environmental & Facilities Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investments, amortized cost   $ 22,984,000          
Investments, fair value   $ 22,895,000          
Percent of net assets   7.20%   7.20%      
Debt Investments | Health Care Facilities              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 8,694,000 $ 8,973,000          
Investments, fair value $ 8,660,000 $ 8,966,000          
Percent of net assets 3.00% 2.80% 3.00% 2.80%      
Debt Investments | Health Care Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 19,577,000 $ 17,577,000          
Investments, fair value $ 19,589,000 $ 17,643,000          
Percent of net assets 6.90% 5.50% 6.90% 5.50%      
Debt Investments | Health Care Supplies              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 20,142,000 $ 20,056,000          
Investments, fair value $ 19,535,000 $ 18,983,000          
Percent of net assets 6.80% 6.00% 6.80% 6.00%      
Debt Investments | Heavy Electrical Equipment              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 9,971,000 $ 10,048,000          
Investments, fair value $ 10,138,000 $ 10,135,000          
Percent of net assets 3.60% 3.20% 3.60% 3.20%      
Debt Investments | Home Furnishings              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 25,288,000 $ 27,965,000          
Investments, fair value $ 25,376,000 $ 27,508,000          
Percent of net assets 8.80% 8.60% 8.80% 8.60%      
Debt Investments | Household Products              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 12,104,000 $ 11,282,000          
Investments, fair value $ 11,656,000 $ 10,873,000          
Percent of net assets 4.10% 3.40% 4.10% 3.40%      
Debt Investments | Household Appliances              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 22,326,000 $ 22,088,000          
Investments, fair value $ 21,255,000 $ 21,397,000          
Percent of net assets 7.40% 6.80% 7.40% 6.80%      
Debt Investments | Industrial Machinery & Supplies & Components              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 12,124,000 $ 5,536,000          
Investments, fair value $ 12,225,000 $ 5,364,000          
Percent of net assets 4.30% 1.70% 4.30% 1.70%      
Debt Investments | Integrated Telecommunication Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 12,602,000 $ 12,357,000          
Investments, fair value $ 13,135,000 $ 13,191,000          
Percent of net assets 4.60% 4.20% 4.60% 4.20%      
Debt Investments | Interactive Media & Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investments, amortized cost $ 13,789,000            
Investments, fair value $ 14,214,000            
Percent of net assets 5.00%   5.00%        
Debt Investments | Investment Banking & Brokerage              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investments, amortized cost   $ 3,521,000          
Investments, fair value   $ 3,522,000          
Percent of net assets   1.10%   1.10%      
Debt Investments | IT Consulting And Other Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investments, amortized cost   $ 3,741,000          
Investments, fair value   $ 3,745,000          
Percent of net assets   1.20%   1.20%      
Debt Investments | Leisure Facilities              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled affiliate company investments, Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled affiliate company investments, Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 19,133,000 $ 22,593,000          
Investments, fair value $ 19,337,000 $ 22,436,000          
Percent of net assets 6.80% 7.10% 6.80% 7.10%      
Debt Investments | Leisure Products              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Controlled affiliate company investments, Non-controlled affiliate company investments, Non-controlled/non-affiliate company investments Controlled affiliate company investments, Non-controlled affiliate company investments, Non-controlled/non-affiliate company investments Controlled affiliate company investments, Non-controlled affiliate company investments, Non-controlled/non-affiliate company investments Controlled affiliate company investments, Non-controlled affiliate company investments, Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 45,674,000 $ 32,063,000          
Investments, fair value $ 23,298,000 $ 18,488,000          
Percent of net assets 8.10% 5.80% 8.10% 5.80%      
Debt Investments | Life Sciences Tools & Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 4,953,000 $ 4,944,000          
Investments, fair value $ 5,000,000 $ 4,901,000          
Percent of net assets 1.70% 1.50% 1.70% 1.50%      
Debt Investments | Office Services & Supplies              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investments, amortized cost   $ 15,476,000          
Investments, fair value   $ 15,503,000          
Percent of net assets   4.90%   4.90%      
Debt Investments | Packaged Foods & Meats              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investments, amortized cost $ 4,024,000            
Investments, fair value $ 4,087,000            
Percent of net assets 1.40%   1.40%        
Debt Investments | Paper Products              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investments, amortized cost $ 9,119,000            
Investments, fair value $ 9,453,000            
Percent of net assets 3.30%   3.30%        
Debt Investments | Real Estate Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 21,016,000 $ 21,501,000          
Investments, fair value $ 20,710,000 $ 21,735,000          
Percent of net assets 7.30% 6.90% 7.30% 6.90%      
Debt Investments | Research & Consulting Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 4,823,000 $ 8,166,000          
Investments, fair value $ 4,927,000 $ 8,143,000          
Percent of net assets 1.70% 2.50% 1.70% 2.50%      
Debt Investments | Specialized Consumer Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 6,629,000 $ 17,254,000          
Investments, fair value $ 6,748,000 $ 17,492,000          
Percent of net assets 2.40% 5.50% 2.40% 5.50%      
Debt Investments | Security & Alarm Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investments, amortized cost $ 6,857,000            
Investments, fair value $ 7,070,000            
Percent of net assets 2.50%   2.50%        
Debt Investments | Specialized Finance              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 84,416,000 $ 84,416,000          
Investments, fair value $ 84,416,000 $ 84,416,000          
Percent of net assets 29.50% 26.60% 29.50% 26.60%      
Debt Investments | Systems Software              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled affiliate company investments, Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled affiliate company investments, Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 16,573,000 $ 20,618,000          
Investments, fair value $ 17,267,000 $ 11,523,000          
Percent of net assets 5.90% 3.60% 5.90% 3.60%      
Debt Investments | Technology Hardware, Storage & Peripherals              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 18,547,000 $ 16,808,000          
Investments, fair value $ 18,072,000 $ 16,745,000          
Percent of net assets 6.30% 5.30% 6.30% 5.30%      
Debt Investments | Transaction & Payment Processing Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investments, amortized cost $ 8,074,000            
Investments, fair value $ 8,066,000            
Percent of net assets 2.80%   2.80%        
Debt Investments | Wireless Telecommunication Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investments, amortized cost   $ 21,226,000          
Investments, fair value   $ 20,969,000          
Percent of net assets   6.60%   6.60%      
Subordinated Debt [Member]              
Schedule of Investments [Line Items]              
Investments, amortized cost $ 1,152,000 $ 167,000          
Investments, fair value $ 1,175,000 $ 167,000          
Equity Investments              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Controlled affiliate company investments, Non-controlled affiliate company investments, Non-controlled/non-affiliate company investments Controlled affiliate company investments, Non-controlled affiliate company investments, Non-controlled/non-affiliate company investments Controlled affiliate company investments, Non-controlled affiliate company investments, Non-controlled/non-affiliate company investments Controlled affiliate company investments, Non-controlled affiliate company investments, Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 63,299,000 $ 46,400,000          
Investments, fair value $ 45,587,000 $ 39,461,000          
Percent of net assets 16.00% 12.30% 16.00% 12.30%      
Equity Investments | Advertising              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 297,000 $ 294,000          
Investments, fair value $ 589,000 $ 420,000          
Percent of net assets 0.20% 0.10% 0.20% 0.10%      
Equity Investments | Air Freight & Logistics              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 1,250,000 $ 1,250,000          
Equity Investments | Broadline Retail              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 514,000 $ 514,000          
Investments, fair value $ 756,000 $ 832,000          
Percent of net assets 0.30% 0.30% 0.30% 0.30%      
Equity Investments | Building Products              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 24,000 $ 423,000          
Investments, fair value   $ 1,053,000          
Percent of net assets   0.30%   0.30%      
Equity Investments | Construction & Engineering              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 404,000 $ 404,000          
Investments, fair value $ 388,000 $ 404,000          
Percent of net assets 0.10% 0.10% 0.10% 0.10%      
Equity Investments | Diversified Chemicals              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled affiliate company investments Non-controlled affiliate company investments Non-controlled affiliate company investments Non-controlled affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 4,537,000 $ 4,537,000          
Investments, fair value $ 1,657,000 $ 251,000          
Percent of net assets 0.60% 0.10% 0.60% 0.10%      
Equity Investments | Diversified Support Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 376,000 $ 360,000          
Investments, fair value $ 149,000 $ 305,000          
Percent of net assets 0.10% 0.10% 0.10% 0.10%      
Equity Investments | Education Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 334,000 $ 167,000          
Investments, fair value $ 100,000 $ 18,000          
Equity Investments | Environmental & Facilities Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 942,000 $ 825,000          
Investments, fair value $ 1,400,000 $ 983,000          
Percent of net assets 0.50% 0.30% 0.50% 0.30%      
Equity Investments | Food Distributors              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investments, amortized cost $ 317,000            
Investments, fair value $ 350,000            
Percent of net assets 0.10%   0.10%        
Equity Investments | Household Products              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investments, amortized cost $ 1,100,000            
Investments, fair value $ 907,000            
Percent of net assets 0.30%   0.30%        
Equity Investments | Household Appliances              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investments, amortized cost   $ 1,100,000          
Investments, fair value   $ 1,330,000          
Percent of net assets   0.40%   0.40%      
Equity Investments | Industrial Machinery & Supplies & Components              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 788,000 $ 788,000          
Investments, fair value $ 1,012,000 $ 1,053,000          
Percent of net assets 0.40% 0.30% 0.40% 0.30%      
Equity Investments | Interactive Media & Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 851,000 $ 851,000          
Investments, fair value $ 1,756,000 $ 1,615,000          
Percent of net assets 0.60% 0.50% 0.60% 0.50%      
Equity Investments | IT Consulting And Other Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 1,926,000 $ 1,926,000          
Investments, fair value $ 3,504,000 $ 2,804,000          
Percent of net assets 1.30% 0.80% 1.30% 0.80%      
Equity Investments | Leisure Facilities              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled affiliate company investments, Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled affiliate company investments, Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 2,734,000 $ 2,734,000          
Investments, fair value $ 243,000 $ 183,000          
Percent of net assets 0.10%   0.10%        
Equity Investments | Leisure Products              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Controlled affiliate company investments, Non-controlled affiliate company investments   Controlled affiliate company investments, Non-controlled affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investments, amortized cost   $ 4,060,000          
Equity Investments | Office Services & Supplies              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Controlled affiliate company investments, Non-controlled affiliate company investments   Controlled affiliate company investments, Non-controlled affiliate company investments        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investments, amortized cost $ 4,060,000            
Equity Investments | Other Diversified Financial Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investments, amortized cost   $ 2,890,000          
Investments, fair value   $ 3,472,000          
Percent of net assets   1.10%   1.10%      
Equity Investments | Paper & Plastic Packaging Products & Materials              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 400,000 $ 400,000          
Investments, fair value   $ 179,000          
Percent of net assets   0.10%   0.10%      
Equity Investments | Real Estate Operating Companies              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration]   Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration]   srt:NorthAmericaMember   srt:NorthAmericaMember      
Investments, amortized cost   $ 840,000          
Investments, fair value   $ 1,023,000          
Percent of net assets   0.30%   0.30%      
Equity Investments | Real Estate Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments   Non-controlled/non-affiliate company investments        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investments, amortized cost $ 840,000            
Investments, fair value $ 162,000            
Percent of net assets 0.10%   0.10%        
Equity Investments | Research & Consulting Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 333,000 $ 333,000          
Investments, fair value $ 368,000 $ 295,000          
Percent of net assets 0.10% 0.10% 0.10% 0.10%      
Equity Investments | Specialized Consumer Services              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments Non-controlled/non-affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 600,000 $ 600,000          
Investments, fair value $ 374,000 $ 459,000          
Percent of net assets 0.10% 0.20% 0.10% 0.20%      
Equity Investments | Specialized Finance              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments Controlled affiliate company investments      
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember srt:NorthAmericaMember      
Investments, amortized cost $ 21,104,000 $ 21,104          
Investments, fair value $ 22,741,000 $ 22,782,000          
Percent of net assets 7.90% 7.20% 7.90% 7.20%      
Equity Investments | Systems Software              
Schedule of Investments [Line Items]              
Investment, Issuer Affiliation [Extensible Enumeration] Non-controlled affiliate company investments   Non-controlled affiliate company investments        
Investment, Issuer Geographic Region [Extensible Enumeration] srt:NorthAmericaMember   srt:NorthAmericaMember        
Investments, amortized cost $ 19,568,000            
Investments, fair value $ 9,131,000            
Percent of net assets 3.20%   3.20%        
Money Market Funds              
Schedule of Investments [Line Items]              
Percent of net assets 4.60%   4.60%        
Money Market Funds amortized cost $ 13,249,000            
Money Market Fair Value $ 13,249,000            
Goldman Sachs Money Market Fund (CUSIP: 38141W315)              
Schedule of Investments [Line Items]              
Percent of net assets 0.30%   0.30%        
Weighted average interest rate 4.33%   4.33%        
Money Market Funds amortized cost $ 837,000            
Money Market Fair Value $ 837,000            
Invesco Treasury Money Market Fund (CUSIP: X9USDINVE)              
Schedule of Investments [Line Items]              
Percent of net assets 4.30%   4.30%        
Weighted average interest rate 3.83%   3.83%        
Money Market Funds amortized cost $ 12,412,000            
Money Market Fair Value 12,412,000            
Pressurized Holdings, LLC [Member] | Preferred Units [Member]              
Schedule of Investments [Line Items]              
Investments, amortized cost         $ 3,892,000    
Sklar Holdings, Inc [Member] | First Lien Secured Term Loan [Member]              
Schedule of Investments [Line Items]              
Investments, amortized cost           $ 3,339,000  
Honors Holdings, LLC [Member]              
Schedule of Investments [Line Items]              
Additional interest for senior term debt   3.50%          
Non-controlled/non-affiliate company investments              
Schedule of Investments [Line Items]              
Investments, fair value $ 504,832,000 $ 577,798,000